SkillAgentSearch skills...

StarRatingViewSwiftUI

Star Rating View for SwiftUI

Install / Use

/learn @magickworx/StarRatingViewSwiftUI
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

StarRatingViewSwiftUI

This package provides you with an easy way to show / edit star rating as following screenshot.

examples

You can add this package on Xcode. See documentation.

How to Use

You can just import StarRatingViewSwiftUI to use the package.

  StarRatingView(rating: 4)
    .frame(width: 300, height: 30)
  StarRatingView(rating: 5.5, color: .pink, maxRating: 7)
    .frame(width: 300, height: 30)
  @State var rating: Float = 1.5

  StarRatingView(rating: $rating)
    .onChange(of: rating) { newRating in
      print(newRating)
    }
    .frame(width: 300, height: 30)

License

This package is licensed under BSD License

View on GitHub
GitHub Stars13
CategoryDevelopment
Updated1y ago
Forks3

Languages

Swift

Security Score

80/100

Audited on Mar 8, 2025

No findings