mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Messed up some stuff
This commit is contained in:
parent
f8466c2027
commit
56cb69d856
7 changed files with 85 additions and 30 deletions
|
|
@ -18,6 +18,7 @@ struct IdleAnimationView: View {
|
|||
Group {
|
||||
if let animation = selectedAnimation {
|
||||
AnimationContentView(animation: animation)
|
||||
.id("\(animation.id)-\(animation.hashValue)") // Force complete recreation when ANY property changes
|
||||
} else {
|
||||
// Fallback to original face if nothing selected
|
||||
MinimalFaceFeatures(height: 20, width: 30)
|
||||
|
|
@ -38,8 +39,9 @@ private struct AnimationContentView: View {
|
|||
LottieView(state: LUStateData(
|
||||
type: .loadedFrom(url),
|
||||
speed: animation.speed,
|
||||
loopMode: .loop
|
||||
loopMode: config.loopMode.lottieLoopMode
|
||||
))
|
||||
.id(animation.id) // Force reload when animation changes
|
||||
.frame(
|
||||
width: config.cropWidth * config.scale,
|
||||
height: config.cropHeight * config.scale
|
||||
|
|
@ -55,8 +57,9 @@ private struct AnimationContentView: View {
|
|||
LottieView(state: LUStateData(
|
||||
type: .loadedFrom(url),
|
||||
speed: animation.speed,
|
||||
loopMode: .loop
|
||||
loopMode: config.loopMode.lottieLoopMode
|
||||
))
|
||||
.id(animation.id) // Force reload when animation changes
|
||||
.frame(
|
||||
width: config.cropWidth * config.scale,
|
||||
height: config.cropHeight * config.scale
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue