Skip to content

Commit 48dfa2e

Browse files
committed
Replace explicit splash screen with an icon-based screen.
1 parent f4c488d commit 48dfa2e

9 files changed

Lines changed: 17 additions & 17 deletions

File tree

{{ cookiecutter.format }}/briefcase.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ icon.120 = "{{ cookiecutter.class_name }}/Images.xcassets/AppIcon.appiconset/ico
2828
icon.152 = "{{ cookiecutter.class_name }}/Images.xcassets/AppIcon.appiconset/icon-152.png"
2929
icon.167 = "{{ cookiecutter.class_name }}/Images.xcassets/AppIcon.appiconset/icon-167.png"
3030
icon.180 = "{{ cookiecutter.class_name }}/Images.xcassets/AppIcon.appiconset/icon-180.png"
31+
icon.640 = "{{ cookiecutter.class_name }}/Images.xcassets/Splash.imageset/splash-640.png"
3132
icon.1024 = "{{ cookiecutter.class_name }}/Images.xcassets/AppIcon.appiconset/icon-1024.png"
32-
33-
splash.800 = "{{ cookiecutter.class_name }}/Images.xcassets/Splash.imageset/splash-800.png"
34-
splash.1600 = "{{ cookiecutter.class_name }}/Images.xcassets/Splash.imageset/splash-1600.png"
35-
splash.2400 = "{{ cookiecutter.class_name }}/Images.xcassets/Splash.imageset/splash-2400.png"
33+
icon.1280 = "{{ cookiecutter.class_name }}/Images.xcassets/Splash.imageset/splash-1280.png"
34+
icon.1920 = "{{ cookiecutter.class_name }}/Images.xcassets/Splash.imageset/splash-1920.png"

{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/Images.xcassets/Splash.imageset/Contents.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"images" : [
33
{
44
"idiom" : "universal",
5-
"filename" : "splash-800.png",
5+
"filename" : "splash-640.png",
66
"scale" : "1x"
77
},
88
{
99
"idiom" : "universal",
10-
"filename" : "splash-1600.png",
10+
"filename" : "splash-1280.png",
1111
"scale" : "2x"
1212
},
1313
{
1414
"idiom" : "universal",
15-
"filename" : "splash-2400.png",
15+
"filename" : "splash-1920.png",
1616
"scale" : "3x"
1717
}
1818
],
56.5 KB
Loading
88.5 KB
Loading
26.5 KB
Loading
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
33
<device id="ipad12_9rounded" orientation="portrait" layout="fullscreen" appearance="light"/>
44
<dependencies>
55
<deployment identifier="iOS"/>
6-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22684"/>
77
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
88
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
99
</dependencies>
@@ -17,17 +17,18 @@
1717
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1818
<subviews>
1919
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Splash" translatesAutoresizingMaskIntoConstraints="NO" id="993-d8-iHn">
20-
<rect key="frame" x="0.0" y="0.0" width="1024" height="1366"/>
21-
<color key="backgroundColor" red="{{ cookiecutter.splash_background_color | float_red }}" green="{{ cookiecutter.splash_background_color | float_green }}" blue="{{ cookiecutter.splash_background_color | float_blue }}" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
20+
<rect key="frame" x="100" y="100" width="824" height="1166"/>
21+
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2222
</imageView>
2323
</subviews>
24+
<viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
25+
<color key="backgroundColor" red="{{ cookiecutter.splash_background_color | float_red }}" green="{{ cookiecutter.splash_background_color | float_green }}" blue="{{ cookiecutter.splash_background_color | float_blue }}" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2426
<constraints>
25-
<constraint firstItem="993-d8-iHn" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="FUL-JQ-Kxu"/>
26-
<constraint firstItem="993-d8-iHn" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="dFF-ek-zRv"/>
27-
<constraint firstItem="993-d8-iHn" firstAttribute="trailing" secondItem="Bcu-3y-fUS" secondAttribute="trailing" id="f3h-U5-02m"/>
28-
<constraint firstAttribute="bottom" secondItem="993-d8-iHn" secondAttribute="bottom" id="kxX-UK-khH"/>
27+
<constraint firstItem="993-d8-iHn" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="100" id="FUL-JQ-Kxu"/>
28+
<constraint firstItem="993-d8-iHn" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" constant="100" id="dFF-ek-zRv"/>
29+
<constraint firstItem="993-d8-iHn" firstAttribute="trailing" secondItem="Bcu-3y-fUS" secondAttribute="trailing" constant="-100" id="f3h-U5-02m"/>
30+
<constraint firstAttribute="bottom" secondItem="993-d8-iHn" secondAttribute="bottom" constant="100" id="kxX-UK-khH"/>
2931
</constraints>
30-
<viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
3132
</view>
3233
</viewController>
3334
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
@@ -36,6 +37,6 @@
3637
</scene>
3738
</scenes>
3839
<resources>
39-
<image name="Splash" width="400" height="400"/>
40+
<image name="Splash" width="640" height="640"/>
4041
</resources>
4142
</document>

0 commit comments

Comments
 (0)