Created
August 8, 2020 18:17
-
-
Save azamsharp/5f94bc0ff51ab26c47bb5dcea3bd0001 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
@State private var rating: Int? | |
var body: some View { | |
VStack { | |
RatingView(rating: $rating, max: 5) | |
Text(rating != nil ? "You rating: \(rating!)" : "") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment