Skip to content

StarRateView is a star rating library created in SwiftUI.

License

Notifications You must be signed in to change notification settings

giiiita/StarRateView

Repository files navigation

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

About

StarRateView is a star rating library created in SwiftUI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages