From 0755139be5bf8587201dd67de00c68b5e0959a38 Mon Sep 17 00:00:00 2001 From: Reda Lemeden Date: Sun, 31 Dec 2017 22:38:30 +0100 Subject: [PATCH] Make demo run fullscreen on iPhone X --- Demo/Demo.xcodeproj/project.pbxproj | 19 ++++++++++++-- .../AppIcon.appiconset/Contents.json | 5 ++++ Demo/Source/LaunchScreen.storyboard | 25 +++++++++++++++++++ Demo/Source/Main.storyboard | 21 ++++++++-------- Demo/Source/Supporting Files/Info.plist | 2 ++ Supporting Files/Info.plist | 2 +- 6 files changed, 61 insertions(+), 13 deletions(-) create mode 100644 Demo/Source/LaunchScreen.storyboard diff --git a/Demo/Demo.xcodeproj/project.pbxproj b/Demo/Demo.xcodeproj/project.pbxproj index fb3fbca..34801c1 100755 --- a/Demo/Demo.xcodeproj/project.pbxproj +++ b/Demo/Demo.xcodeproj/project.pbxproj @@ -10,6 +10,7 @@ 0009FCE71D16A4AB0038DC85 /* earth.gif in Resources */ = {isa = PBXBuildFile; fileRef = 0009FCE61D16A4AB0038DC85 /* earth.gif */; }; 002A1BFC1D1624D0005ABBD0 /* mugen.gif in Resources */ = {isa = PBXBuildFile; fileRef = 002A1BFB1D1624D0005ABBD0 /* mugen.gif */; }; 002FF5141D3A91340069CA56 /* Gifu.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 002A1BF91D161D33005ABBD0 /* Gifu.framework */; }; + 0032FE841FFA693500444203 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0032FE831FFA693500444203 /* LaunchScreen.storyboard */; }; 007380231B279644008DAD5C /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 007380221B279644008DAD5C /* Default-568h@2x.png */; }; 00DD26EB1DA5968500A0F683 /* EmptyViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00DD26EA1DA5968500A0F683 /* EmptyViewController.swift */; }; 9D98823D19BC69CA00B790C6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D98823C19BC69CA00B790C6 /* AppDelegate.swift */; }; @@ -22,6 +23,7 @@ 0009FCE61D16A4AB0038DC85 /* earth.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = earth.gif; sourceTree = ""; }; 002A1BF91D161D33005ABBD0 /* Gifu.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Gifu.framework; path = "../../../../Library/Developer/Xcode/DerivedData/Gifu-gwslszlwadetledwfipapwloqzrw/Build/Products/Debug-iphonesimulator/Gifu.framework"; sourceTree = ""; }; 002A1BFB1D1624D0005ABBD0 /* mugen.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; name = mugen.gif; path = ../../../GifuTests/Images/mugen.gif; sourceTree = ""; }; + 0032FE831FFA693500444203 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = ""; }; 007380221B279644008DAD5C /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 00B2B8171E1DAB1C00A50D91 /* UIImageViewExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIImageViewExtension.swift; sourceTree = ""; }; 00DD26EA1DA5968500A0F683 /* EmptyViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EmptyViewController.swift; sourceTree = ""; }; @@ -77,6 +79,7 @@ 9D98823C19BC69CA00B790C6 /* AppDelegate.swift */, 9D98824319BC69CA00B790C6 /* Images.xcassets */, 9D98825919BC69F600B790C6 /* Main.storyboard */, + 0032FE831FFA693500444203 /* LaunchScreen.storyboard */, 9D98823E19BC69CA00B790C6 /* ViewController.swift */, 00DD26EA1DA5968500A0F683 /* EmptyViewController.swift */, 00B2B8171E1DAB1C00A50D91 /* UIImageViewExtension.swift */, @@ -158,6 +161,7 @@ 0009FCE71D16A4AB0038DC85 /* earth.gif in Resources */, 9D98824419BC69CA00B790C6 /* Images.xcassets in Resources */, 002A1BFC1D1624D0005ABBD0 /* mugen.gif in Resources */, + 0032FE841FFA693500444203 /* LaunchScreen.storyboard in Resources */, 007380231B279644008DAD5C /* Default-568h@2x.png in Resources */, 9D98825A19BC69F600B790C6 /* Main.storyboard in Resources */, ); @@ -178,6 +182,17 @@ }; /* End PBXSourcesBuildPhase section */ +/* Begin PBXVariantGroup section */ + 0032FE621FF982FC00444203 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 0032FE631FF982FC00444203 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + /* Begin XCBuildConfiguration section */ 9D98825119BC69CA00B790C6 /* Debug */ = { isa = XCBuildConfiguration; @@ -281,7 +296,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = "Source/Supporting Files/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.2; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = co.kaishin.gifu.demo; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -297,7 +312,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = "Source/Supporting Files/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.2; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = co.kaishin.gifu.demo; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Demo/Source/Images.xcassets/AppIcon.appiconset/Contents.json b/Demo/Source/Images.xcassets/AppIcon.appiconset/Contents.json index a252a3e..9be86dc 100755 --- a/Demo/Source/Images.xcassets/AppIcon.appiconset/Contents.json +++ b/Demo/Source/Images.xcassets/AppIcon.appiconset/Contents.json @@ -42,6 +42,11 @@ "idiom" : "iphone", "size" : "60x60", "scale" : "3x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" } ], "info" : { diff --git a/Demo/Source/LaunchScreen.storyboard b/Demo/Source/LaunchScreen.storyboard new file mode 100644 index 0000000..f83f6fd --- /dev/null +++ b/Demo/Source/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demo/Source/Main.storyboard b/Demo/Source/Main.storyboard index ea57050..dc0f65c 100755 --- a/Demo/Source/Main.storyboard +++ b/Demo/Source/Main.storyboard @@ -1,10 +1,11 @@ - + - + + @@ -22,16 +23,16 @@ - + @@ -44,17 +45,17 @@ - + - + @@ -125,7 +126,7 @@ - + @@ -138,7 +139,7 @@ - + diff --git a/Demo/Source/Supporting Files/Info.plist b/Demo/Source/Supporting Files/Info.plist index dd791df..6905cc6 100755 --- a/Demo/Source/Supporting Files/Info.plist +++ b/Demo/Source/Supporting Files/Info.plist @@ -22,6 +22,8 @@ 1 LSRequiresIPhoneOS + UILaunchStoryboardName + LaunchScreen UIMainStoryboardFile Main UIRequiredDeviceCapabilities diff --git a/Supporting Files/Info.plist b/Supporting Files/Info.plist index 73023fa..555377f 100644 --- a/Supporting Files/Info.plist +++ b/Supporting Files/Info.plist @@ -19,7 +19,7 @@ CFBundleSignature ???? CFBundleVersion - 133 + 134 NSPrincipalClass