4 ms·
SwiftUI has features like that struct AnimatedCircle: View { @State private var radius: CGFloat = 0 var body: some View { Circl
by bartvk 6y ago
SwiftUI has features like that
struct AnimatedCircle: View {
@State private var radius: CGFloat = 0
var body: some View {
Circle()
.frame(width: radius, height: radius)
.onAppear {
withAnimation {
self.radius = 100
}
}
}
}