feat(refresh): Lottie 새로고침 표시를 적용한다

This commit is contained in:
Yu Sung
2026-08-26 01:21:26 +09:00
parent fc0f7e2b50
commit e46198f87a
14 changed files with 1046 additions and 297 deletions

View File

@@ -0,0 +1,27 @@
import SwiftUI
import Lottie
struct LottieRefreshIndicator: View {
let isAnimating: Bool
@Environment(\.accessibilityReduceMotion) private var accessibilityReduceMotion
var body: some View {
let animation = LottieView(animation: .named("pull-to-refresh"))
.configure(\.contentMode, to: .scaleAspectFit)
.resizable()
Group {
if accessibilityReduceMotion {
animation.currentFrame(1)
} else if isAnimating {
animation.looping()
} else {
animation.currentFrame(0)
}
}
.frame(maxWidth: SodaSpacing.s48, maxHeight: SodaSpacing.s48)
.accessibilityHidden(true)
}
}