From 743815ea19c3eed803315629a8d2e51098baf6ab Mon Sep 17 00:00:00 2001 From: wonseok Date: Wed, 13 Dec 2023 17:57:37 +0900 Subject: [PATCH] Add CADisableMinimumFrameDurationOnPhone and set true in Info.plist to support high frequency rendering on iPhones --- sample/ios/peekaboo.xcodeproj/project.pbxproj | 4 ++++ sample/ios/peekaboo/Info.plist | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 sample/ios/peekaboo/Info.plist diff --git a/sample/ios/peekaboo.xcodeproj/project.pbxproj b/sample/ios/peekaboo.xcodeproj/project.pbxproj index 27d0c25..71a3ed0 100644 --- a/sample/ios/peekaboo.xcodeproj/project.pbxproj +++ b/sample/ios/peekaboo.xcodeproj/project.pbxproj @@ -19,6 +19,7 @@ 340D7E462B24339A00627F7D /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 340D7E482B24339B00627F7D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 340D7E4B2B24339B00627F7D /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 34301AE02B29A947000D8091 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -51,6 +52,7 @@ 340D7E432B24339A00627F7D /* peekaboo */ = { isa = PBXGroup; children = ( + 34301AE02B29A947000D8091 /* Info.plist */, 340D7E442B24339A00627F7D /* peekabooApp.swift */, 340D7E462B24339A00627F7D /* ContentView.swift */, 340D7E482B24339B00627F7D /* Assets.xcassets */, @@ -297,6 +299,7 @@ ENABLE_PREVIEWS = YES; FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../common/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)"; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = peekaboo/Info.plist; INFOPLIST_KEY_NSCameraUsageDescription = "This app uses camera for capturing photos"; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -333,6 +336,7 @@ ENABLE_PREVIEWS = YES; FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../common/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)"; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = peekaboo/Info.plist; INFOPLIST_KEY_NSCameraUsageDescription = "This app uses camera for capturing photos"; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; diff --git a/sample/ios/peekaboo/Info.plist b/sample/ios/peekaboo/Info.plist new file mode 100644 index 0000000..11845e1 --- /dev/null +++ b/sample/ios/peekaboo/Info.plist @@ -0,0 +1,8 @@ + + + + + CADisableMinimumFrameDurationOnPhone + + +