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.

Instructions

To be able to test Background tasks, please, follow these steps:

  1. 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>
    
  2. Enjoy the app.

Build Requirements

Building this sample requires Xcode 11.0 and iOS 13.0 SDK

Refs

Target

This sample runnable on iPhoneSimulator/iPadSimulator iPhone/iPad

License

Xamarin port changes are released under the MIT license.

The original sample is released under the following license.