|
@@ -268,7 +268,14 @@ open class AnimatedImageView: UIImageView {
|
|
|
#if os(visionOS)
|
|
#if os(visionOS)
|
|
|
let targetSize = bounds.scaled(UITraitCollection.current.displayScale).size
|
|
let targetSize = bounds.scaled(UITraitCollection.current.displayScale).size
|
|
|
#else
|
|
#else
|
|
|
- let targetSize = bounds.scaled(UIScreen.main.scale).size
|
|
|
|
|
|
|
+ var scale: CGFloat = 0
|
|
|
|
|
+
|
|
|
|
|
+ if #available(iOS 13.0, tvOS 13.0, *) {
|
|
|
|
|
+ scale = UITraitCollection.current.displayScale
|
|
|
|
|
+ } else {
|
|
|
|
|
+ scale = UIScreen.main.scale
|
|
|
|
|
+ }
|
|
|
|
|
+ let targetSize = bounds.scaled(scale).size
|
|
|
#endif
|
|
#endif
|
|
|
let animator = Animator(
|
|
let animator = Animator(
|
|
|
frameSource: frameSource,
|
|
frameSource: frameSource,
|