You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #2017 on April 03, 2023 04:44.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it not possible to set currentProgress in SwiftUI? I have tried setting it in updateUIView but it doesn't work.
Lottie 4.1.3
Here is the code:
import SwiftUI
import Lottie
struct LottieView: UIViewRepresentable {
var name: String
var progress: CGFloat
let animationView:LottieAnimationView
init(name: String, progress: CGFloat, animationView: LottieAnimationView = LottieAnimationView()) {
self.name = name
self.progress = progress
self.animationView = LottieAnimationView(name: name,bundle: .main)
}
}
//SwiftUI
LottieView(name: "exporting",progress:viewStore.exportProgress)
.frame(width: 180,height: 112)
Thanks fot help.
Beta Was this translation helpful? Give feedback.
All reactions