We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I changed SimpleMapExample like this and observe a strange "stuttering" Zoom Animation when taping on the map
@available(iOS 14.0, *) struct SimpleMapExample: View { @Environment(.colorScheme) var colorScheme @State var isEnlarged: Bool = false
var body: some View { let polygon = Polygon(center: .helsinki, radius: 10000, vertices: 30) VStack { HStack { Spacer() Map(initialViewport: .overview(geometry: polygon)) .mapStyle(.standard(lightPreset: colorScheme == .light ? .day : .dusk)) .frame(width: isEnlarged ? 390 : 100, height: isEnlarged ? 750 : 100) .onTapGesture { withAnimation (.linear(duration: 5)) { self.isEnlarged.toggle() } } } Spacer() } }
}
Smooth linear animation
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Observed behavior and steps to reproduce
I changed SimpleMapExample like this and observe a strange "stuttering" Zoom Animation when taping on the map
@available(iOS 14.0, *)
struct SimpleMapExample: View {
@Environment(.colorScheme) var colorScheme
@State var isEnlarged: Bool = false
}
Expected behavior
Smooth linear animation
Notes / preliminary analysis
Additional links and references
MapboxZoomAnimation.mp4
The text was updated successfully, but these errors were encountered: