Skip to content

Commit 3cef59f

Browse files
authored
Fix Animation issue when rotate screen (#464)
1 parent 42719ba commit 3cef59f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Sources/OpenSwiftUICore/Animation/Animation/AnimationModifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ struct ValueTransactionSeed<V>: StatefulRule, AsyncAttribute where V: Equatable
185185
guard oldValue != newValue else {
186186
return
187187
}
188-
value = Graph.withoutUpdate { transactionSeed}
188+
value = Graph.withoutUpdate { transactionSeed }
189189
} else {
190190
value = .max
191191
}

Sources/OpenSwiftUICore/View/Graph/ViewGraph.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ extension ViewGraph {
397397
// FIXME
398398
private func updateOutputs(async: Bool) {
399399
instantiateIfNeeded()
400-
400+
data.transactionSeed &+= 1
401+
401402
// let oldCachedSizeThatFits = cachedSizeThatFits
402403

403404
var preferencesChanged = false

0 commit comments

Comments
 (0)