From 47ad18374cbcc00b177162e105c5cc94e31f18ff Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Tue, 8 Aug 2023 23:38:01 +0200 Subject: [PATCH] Fix iOS notch assuming Tonbrett has a light theme --- app/ios/iosApp.xcodeproj/project.pbxproj | 18 ++++++++++++++++++ app/ios/iosApp/ComposeView.swift | 3 ++- build.gradle.kts | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/app/ios/iosApp.xcodeproj/project.pbxproj b/app/ios/iosApp.xcodeproj/project.pbxproj index 2a0d4c9..2fd8399 100644 --- a/app/ios/iosApp.xcodeproj/project.pbxproj +++ b/app/ios/iosApp.xcodeproj/project.pbxproj @@ -110,6 +110,7 @@ 8E3F49702A1A51E5001D2B92 /* Frameworks */, 8E3F49712A1A51E5001D2B92 /* Resources */, C6EB1AFF7763061CB96D186D /* [CP] Embed Pods Frameworks */, + 32E192EE27DF2FC6DF4BFC1D /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -167,6 +168,23 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ + 32E192EE27DF2FC6DF4BFC1D /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-iosApp/Pods-iosApp-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-iosApp/Pods-iosApp-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-iosApp/Pods-iosApp-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; 85433CD92AD76BFD949C6466 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; diff --git a/app/ios/iosApp/ComposeView.swift b/app/ios/iosApp/ComposeView.swift index ba74c26..ec894d5 100644 --- a/app/ios/iosApp/ComposeView.swift +++ b/app/ios/iosApp/ComposeView.swift @@ -20,6 +20,7 @@ struct ComposeView: UIViewControllerRepresentable { struct ContentView: View { var body: some View { ComposeView() - .ignoresSafeArea(.all) // Compose has own keyboard handler + .ignoresSafeArea(.keyboard) // Compose has own keyboard handler + .preferredColorScheme(.dark) // there is no light theme YET or ever } } diff --git a/build.gradle.kts b/build.gradle.kts index 9319190..80c584c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ plugins { allprojects { group = "dev.schlaubi.tonbrett" - version = "1.12.4" + version = "1.12.5" repositories { mavenCentral()