StarRateView

main

StarRateView is a star rating library created in SwiftUI.
giiiita/StarRateView

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

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Oct 23 2024 03:24:22 GMT-0900 (Hawaii-Aleutian Daylight Time)