Skip to content

Commit fd329a8

Browse files
committed
Draw the app dark on iOS whatever the phone is set to
devnull is dark first, like the web. UIUserInterfaceStyle pins the app, its splash and its system chrome (status bar, keyboard, sheets) to dark, and every element already carries its dark colours. The key goes in nativephp.permissions, which NativePHP merges into Info.plist after every plugin.
1 parent a1ee048 commit fd329a8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎config/nativephp.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
*/
111111

112112
'permissions' => [
113+
// Not a permission, but this is where app-level Info.plist keys go. devnull is dark first, like the web, so
114+
// iOS draws the app, its splash and its system chrome dark whatever the phone is set to.
115+
'UIUserInterfaceStyle' => 'Dark',
116+
113117
// 'NSCameraUsageDescription' => 'Used to take a profile photo.',
114118
// 'NSMicrophoneUsageDescription' => 'Used to record audio with your videos.',
115119
// 'NSPhotoLibraryUsageDescription' => 'Used to select photos for your post.',

0 commit comments

Comments
 (0)