Reading time: 1 min
This recipe shows how to implement a star rating view in SwiftUI. The end result will look like this:
The view uses SF Symbols, allowing it to scale to any size and render in any color. It supports an arbitrary upper limit for the rating and automatically rounds to nearest half.
Search our recipes!
Have a recipe for us?
Get in touch and let's grow the cookbook together!