Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1003 Bytes

README.md

File metadata and controls

30 lines (26 loc) · 1003 Bytes

StarRateView

StarRateView is a star rating library created in SwiftUI.

Platforms License: MIT

Usage

struct ContentView: View {
    @State var rate: Double = 2.5
    
    var body: some View {
        StarRateView(starCount: 5, rate: self.rate)
            .starSize(20)
            .starPadding(4.0)
            .forgroundStarColor(.yellow)
            .backgroundStarColor(.gray)
    }
}

Installation

StarRateView is available via Swift Package Manager. go to File -> Swift Packages -> Add Package Dependency and enter https://github.com/giiiita/StarRateView