Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/content/release/breaking-changes/uiscenedelegate.md
Original file line number Diff line number Diff line change
Expand Up @@ -804,14 +804,14 @@ performed here related to the launch options should be moved to the

6. [Optional] Migrate other deprecated APIs to support multiple scenes in the future.

| Deprecated API | UIScene Replacement |
|:---------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [`UIScreen mainScreen`](https://developer.apple.com/documentation/uikit/uiscreen/1617815-mainscreen) | [`self.pluginRegistrar.viewController.view.window.windowScene.screen`](https://developer.apple.com/documentation/uikit/uiwindowscene/screen?language=objc) |
| [`UIApplication keyWindow`](https://developer.apple.com/documentation/uikit/uiapplication/1622924-keywindow) | [`self.pluginRegistrar.viewController.view.window.windowScene.keyWindow`](https://developer.apple.com/documentation/uikit/uiwindowscene/keywindow?language=objc) |
| [`UIApplication windows`](https://developer.apple.com/documentation/uikit/uiapplication/windows) | [`self.pluginRegistrar.viewController.view.window.windowScene.windows`](https://developer.apple.com/documentation/uikit/uiwindowscene/windows?language=objc) |
| [`UIApplicationDelegate window`](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/window) | [`self.pluginRegistrar.viewController.view.window.windowScene.keyWindow`](https://developer.apple.com/documentation/uikit/uiview/window?language=objc) |

Instead of accessing these APIs, you can access the windowScene through the viewController. See examples below.
| Deprecated API | UIScene Replacement |
|:---------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------|
| [`UIScreen mainScreen`](https://developer.apple.com/documentation/uikit/uiscreen/1617815-mainscreen) | [`UIWindowScene screen`](https://developer.apple.com/documentation/uikit/uiwindowscene/screen?language=objc) |
| [`UIApplication keyWindow`](https://developer.apple.com/documentation/uikit/uiapplication/1622924-keywindow) | [`UIWindowScene keyWindow`](https://developer.apple.com/documentation/uikit/uiwindowscene/keywindow?language=objc) |
| [`UIApplication windows`](https://developer.apple.com/documentation/uikit/uiapplication/windows) | [`UIWindowScene windows`](https://developer.apple.com/documentation/uikit/uiwindowscene/windows?language=objc) |
| [`UIApplicationDelegate window`](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/window) | [`UIView window`](https://developer.apple.com/documentation/uikit/uiview/window?language=objc) |

Instead of accessing these APIs, you can access the `windowScene` through the `viewController`. See examples below.

<Tabs key="ios-language-switcher">
<Tab name="Objective-C">
Expand Down
Loading