feat: ProcessingView 脉冲动画微调
- 动画时长从 1.5s 调整为 2.0s(更平缓自然) - 脉冲尺寸差从 160↔180 调整为 160↔175(更微妙克制) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,7 @@ struct ProcessingView: View {
|
|||||||
await startProcessing()
|
await startProcessing()
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
withAnimation(.easeInOut(duration: 1.5).repeatForever(autoreverses: true)) {
|
withAnimation(.easeInOut(duration: 2.0).repeatForever(autoreverses: true)) {
|
||||||
pulseAnimation = true
|
pulseAnimation = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -88,8 +88,8 @@ struct ProcessingView: View {
|
|||||||
// 脉冲动画背景
|
// 脉冲动画背景
|
||||||
Circle()
|
Circle()
|
||||||
.fill(Color.accentPurple.opacity(0.1))
|
.fill(Color.accentPurple.opacity(0.1))
|
||||||
.frame(width: pulseAnimation ? 180 : 160, height: pulseAnimation ? 180 : 160)
|
.frame(width: pulseAnimation ? 175 : 160, height: pulseAnimation ? 175 : 160)
|
||||||
.animation(.easeInOut(duration: 1.5).repeatForever(autoreverses: true), value: pulseAnimation)
|
.animation(.easeInOut(duration: 2.0).repeatForever(autoreverses: true), value: pulseAnimation)
|
||||||
|
|
||||||
// 进度环
|
// 进度环
|
||||||
SoftProgressRing(
|
SoftProgressRing(
|
||||||
|
|||||||
Reference in New Issue
Block a user