Skip to content

Commit 7167c94

Browse files
authored
Move Showcase light mode pref to Info.plist (#484)
1 parent 83c10a0 commit 7167c94

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Examples/Showcase/Showcase.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@
327327
INFOPLIST_KEY_UILaunchStoryboardName = "";
328328
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
329329
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
330+
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
330331
LD_RUNPATH_SEARCH_PATHS = (
331332
"$(inherited)",
332333
"@executable_path/Frameworks",
@@ -361,6 +362,7 @@
361362
INFOPLIST_KEY_UILaunchStoryboardName = "";
362363
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
363364
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
365+
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
364366
LD_RUNPATH_SEARCH_PATHS = (
365367
"$(inherited)",
366368
"@executable_path/Frameworks",

Examples/Showcase/Showcase/App.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import SwiftUI
44
struct App: SwiftUI.App {
55
var body: some Scene {
66
WindowGroup {
7-
AppView().preferredColorScheme(.light)
7+
AppView()
88
}
99
}
1010
}

Examples/Showcase/Showcase/AppView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ struct ContentView: View {
6666
}
6767

6868
#Preview {
69-
AppView().preferredColorScheme(.light)
69+
AppView()
7070
}

0 commit comments

Comments
 (0)