mirror of
https://github.com/EmergeTools/Pow.git
synced 2026-03-25 08:55:50 +00:00
Co-authored-by: Robert Böhnke <robb@robb.is> Co-authored-by: Kasper Lahti <kasper@lahti.email>
11 lines
286 B
Swift
11 lines
286 B
Swift
import SwiftUI
|
|
|
|
internal extension ViewModifier where Self: Animatable {
|
|
func defaultAnimation(_ animation: Animation) -> some ViewModifier {
|
|
transaction { t in
|
|
if t.animation == .default {
|
|
t.animation = animation
|
|
}
|
|
}
|
|
}
|
|
}
|