Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ package struct AnimatableAttributeHelper<Value> where Value: Animatable {
@inline(__always)
private mutating func updateAnimatorStateIfNeeded(
value: (value: Value, changed: Bool),
defaultAnimation: Animation?,
animationTime: inout Time,
environment: Attribute<EnvironmentValues>,
sampleCollector: (Value.AnimatableData, Time) -> Void
Expand All @@ -243,7 +244,7 @@ package struct AnimatableAttributeHelper<Value> where Value: Animatable {
return
}
let transaction: Transaction = Graph.withoutUpdate { self.transaction }
guard let animation = transaction.effectiveAnimation else {
guard let animation = transaction.effectiveAnimation ?? defaultAnimation else {
return
}
var interval = modelData
Expand Down Expand Up @@ -324,6 +325,7 @@ package struct AnimatableAttributeHelper<Value> where Value: Animatable {
}
updateAnimatorStateIfNeeded(
value: value,
defaultAnimation: defaultAnimation,
animationTime: &animationTime,
environment: environment,
sampleCollector: sampleCollector
Expand Down
Loading