Slide 16
Slide 16 text
Circle()
.trim(from: 0, to: 0.6)
.stroke(
AngularGradient(
gradient: Gradient(colors: [.gray, .white]),
center: .center),
style: StrokeStyle(
lineWidth: 8,
lineCap: .round,
dash: [0.1, 16],
dashPhase: 8))
.frame(width: 48, height: 48)
.rotationEffect(
Angle(degrees: self.isAnimation ? 360 : 0))
.onAppear() {
withAnimation(
Animation
.linear(duration: 1)
.repeatForever(autoreverses: false)) {
self.isAnimation.toggle()
}
}