Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active May 25, 2023 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/661d333fc87acd18cc119b7407b08371 to your computer and use it in GitHub Desktop.
Save laevandus/661d333fc87acd18cc119b7407b08371 to your computer and use it in GitHub Desktop.
struct RatingsView_Previews: PreviewProvider {
static var previews: some View {
VStack {
let steps = Array(stride(from: 0.0, through: 5.0, by: 0.5))
ForEach(steps, id: \.self) { value in
RatingsView(value: value)
}
}
.previewLayout(.sizeThatFits)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment