there are UIScreen.main that will be deprecated.
// LottieAnimationViewBase.swift
var screenScale: CGFloat {
#if os(iOS) || os(tvOS)
UIScreen.main.scale
#else // if os(visionOS)
// We intentionally don't check `#if os(visionOS)`, because that emits
// a warning when building on Xcode 14 and earlier.
1.0
#endif
}