Skip to content

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

@hyun99999

Description

@hyun99999

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
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions