Skip to content

UIApplication.shared.windows deprecated in iOS 15 #99

@dmeehan1968

Description

@dmeehan1968

The following line throws a deprecation warning in iOS 15.

This can be updated to:

guard let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
      let window = windowScene.windows.first
      else { return }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions