Swiftpack.co - magickworx/StarRatingViewSwiftUI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by magickworx.
magickworx/StarRatingViewSwiftUI 1.1
Star Rating View for SwiftUI
⭐️ 9
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/magickworx/StarRatingViewSwiftUI.git", from: "1.1")


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


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
    .frame(width: 300, height: 30)


This package is licensed under BSD License


Stars: 9
Last commit: 4 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics