Xamarin.iOS - Supporting Multiple Windows on iPad
This is a Xamarin port of Apple's Supporting Multiple Windows on iPad sample.
Use the UIScene lifecycle to support two side-by-side instances of your interface and learn how to create a new window with drag and drop.
To be able to test Background tasks, please, follow these steps:
Add the following keys to Info.plist to support multiple windows:
<key>NSUserActivityTypes</key> <array> <string>com.xamarin.Gallery.openDetail</string> </array> <key>UIApplicationSceneManifest</key> <dict> <key>UIApplicationSupportsMultipleScenes</key> <true/> <key>UISceneConfigurations</key> <dict> <key>UIWindowSceneSessionRoleApplication</key> <array> <dict> <key>UISceneConfigurationName</key> <string>Default Configuration</string> <key>UISceneDelegateClassName</key> <string>SceneDelegate</string> <key>UISceneStoryboardFile</key> <string>Main</string> </dict> </array> </dict> </dict>
Enjoy the app.
Building this sample requires Xcode 11.0 and iOS 13.0 SDK
- Original sample page.
- protocol UIWindowSceneDelegate
- class UIWindowScene
- protocol UISceneDelegate
- class UIScene
- This sample code project is associated with WWDC 2019 session 212: Introducing Multiple Windows on iPad.
This sample runnable on iPhoneSimulator/iPadSimulator iPhone/iPad
Xamarin port changes are released under the MIT license.
The original sample is released under the following license.