Repository navigation
Commit 1bdc4ef
feat(templates): adopt the UIKit scene lifecycle in the iOS head
Apple is retiring the window-based UIApplicationDelegate life cycle. An app
whose Info.plist has no UIApplicationSceneManifest already logs "UIScene
lifecycle will soon be required" on iOS 26, and per Apple DTS "failing to
adopt the scene-based life cycle in the next major iOS release will prevent
the app from launching". This is therefore not an optional multi-window
feature - a generated iOS head without it stops launching.
Two halves that only work as a pair:
- Info.plist gains a UIApplicationSceneManifest declaring
UIApplicationSupportsMultipleScenes and one default scene configuration
naming SceneDelegate as UISceneDelegateClassName.
- Platforms/iOS/SceneDelegate.iOS.cs registers a [Register("SceneDelegate")]
subclass of Uno.UI.Runtime.Skia.AppleUIKit.UnoUISceneDelegate. The
registered name and UISceneDelegateClassName must match for UIKit to
resolve the delegate at launch.
Both are unconditional for the iOS head. Platforms/iOS/**/* is already
excluded when iOS is not selected, so no further gating is needed.
Multi-window on iPadOS falls out of scene adoption, but is a consequence
rather than the reason: UIApplicationSupportsMultipleScenes could be set
false later without giving up the lifecycle compliance.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01M4hG8PDawQsDBqY62tf2wG1 parent 1438da7 commit 1bdc4ef
2 files changed
Lines changed: 26 additions & 0 deletions
File tree
- src/Uno.Templates/content/unoapp/MyExtensionsApp.1/Platforms/iOS
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
36 | 53 | | |
37 | 54 | | |
38 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments