Conform to UIAccessibility.isReduceMotionEnabled

This commit is contained in:
Stefan Ceriu
2023-09-20 14:46:56 +03:00
committed by Stefan Ceriu
parent 29bcc5371a
commit bba3fab31d
2 changed files with 11 additions and 2 deletions
@@ -23,7 +23,7 @@ public extension Animation {
/// `noAnimation` if running UI tests, otherwise `default` animation.
static var elementDefault: Animation {
Tests.isRunningUITests ? .noAnimation : .default
Tests.isRunningUITests ? .noAnimation : (UIAccessibility.isReduceMotionEnabled ? .noAnimation : .default)
}
}