Skip to content

Commit 9b99a05

Browse files
authored
Merge pull request #528 from JetBrains/ipad-support
Configure iPad support, allow landscape on iPhone
2 parents f82095c + 5f63d3b commit 9b99a05

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

iosApp/KotlinConf.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
SUPPORTS_MACCATALYST = NO;
367367
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
368368
SWIFT_VERSION = 5.0;
369-
TARGETED_DEVICE_FAMILY = 1;
369+
TARGETED_DEVICE_FAMILY = "1,2";
370370
};
371371
name = Debug;
372372
};
@@ -410,7 +410,7 @@
410410
SUPPORTS_MACCATALYST = NO;
411411
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
412412
SWIFT_VERSION = 5.0;
413-
TARGETED_DEVICE_FAMILY = 1;
413+
TARGETED_DEVICE_FAMILY = "1,2";
414414
};
415415
name = Release;
416416
};

iosApp/iosApp/Info.plist

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
<array>
3939
<string>remote-notification</string>
4040
</array>
41+
<key>UIDeviceFamily</key>
42+
<array>
43+
<integer>1</integer>
44+
<integer>2</integer>
45+
</array>
4146
<key>UILaunchScreen</key>
4247
<dict>
4348
<key>UIImageName</key>
@@ -55,7 +60,16 @@
5560
<true/>
5661
<key>UISupportedInterfaceOrientations</key>
5762
<array>
63+
<string>UIInterfaceOrientationLandscapeLeft</string>
64+
<string>UIInterfaceOrientationLandscapeRight</string>
65+
<string>UIInterfaceOrientationPortrait</string>
66+
</array>
67+
<key>UISupportedInterfaceOrientations~ipad</key>
68+
<array>
69+
<string>UIInterfaceOrientationLandscapeLeft</string>
70+
<string>UIInterfaceOrientationLandscapeRight</string>
5871
<string>UIInterfaceOrientationPortrait</string>
72+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
5973
</array>
6074
</dict>
6175
</plist>

0 commit comments

Comments
 (0)