Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIScreen.main will be deprecated in a future version of iOS #2215

Closed
hyun99999 opened this issue Oct 18, 2023 · 0 comments · Fixed by #2216
Closed

UIScreen.main will be deprecated in a future version of iOS #2215

hyun99999 opened this issue Oct 18, 2023 · 0 comments · Fixed by #2216

Comments

@hyun99999
Copy link
Contributor

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
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant