Skip to content

Commit aba7eb5

Browse files
committed
Add Launch Screen storyboard to support larger screen sizes
1 parent 47ac54b commit aba7eb5

File tree

6 files changed

+85
-25
lines changed

6 files changed

+85
-25
lines changed

LoveFinder.xcodeproj/project.pbxproj

+12-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
2329A54719AAA61100692DDC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2329A54519AAA61100692DDC /* Main.storyboard */; };
1313
2329A54919AAA61100692DDC /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2329A54819AAA61100692DDC /* Images.xcassets */; };
1414
2329A55519AAA61200692DDC /* LoveFinderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2329A55419AAA61200692DDC /* LoveFinderTests.swift */; };
15+
2C244DF31CB9E1BB004F2393 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2C244DF11CB9E1BB004F2393 /* Launch Screen.storyboard */; };
1516
/* End PBXBuildFile section */
1617

1718
/* Begin PBXContainerItemProxy section */
@@ -35,6 +36,7 @@
3536
2329A55319AAA61200692DDC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3637
2329A55419AAA61200692DDC /* LoveFinderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoveFinderTests.swift; sourceTree = "<group>"; };
3738
23D4595119AB627900F6A4E0 /* MyPlayground.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = MyPlayground.playground; sourceTree = "<group>"; };
39+
2C244DF21CB9E1BB004F2393 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = "Base.lproj/Launch Screen.storyboard"; sourceTree = "<group>"; };
3840
/* End PBXFileReference section */
3941

4042
/* Begin PBXFrameworksBuildPhase section */
@@ -79,6 +81,7 @@
7981
2329A54119AAA61100692DDC /* AppDelegate.swift */,
8082
2329A54319AAA61100692DDC /* ViewController.swift */,
8183
2329A54519AAA61100692DDC /* Main.storyboard */,
84+
2C244DF11CB9E1BB004F2393 /* Launch Screen.storyboard */,
8285
2329A54819AAA61100692DDC /* Images.xcassets */,
8386
2329A53F19AAA61100692DDC /* Supporting Files */,
8487
23D4595119AB627900F6A4E0 /* MyPlayground.playground */,
@@ -193,6 +196,7 @@
193196
isa = PBXResourcesBuildPhase;
194197
buildActionMask = 2147483647;
195198
files = (
199+
2C244DF31CB9E1BB004F2393 /* Launch Screen.storyboard in Resources */,
196200
2329A54719AAA61100692DDC /* Main.storyboard in Resources */,
197201
2329A54919AAA61100692DDC /* Images.xcassets in Resources */,
198202
);
@@ -244,6 +248,14 @@
244248
name = Main.storyboard;
245249
sourceTree = "<group>";
246250
};
251+
2C244DF11CB9E1BB004F2393 /* Launch Screen.storyboard */ = {
252+
isa = PBXVariantGroup;
253+
children = (
254+
2C244DF21CB9E1BB004F2393 /* Base */,
255+
);
256+
name = "Launch Screen.storyboard";
257+
sourceTree = "<group>";
258+
};
247259
/* End PBXVariantGroup section */
248260

249261
/* Begin XCBuildConfiguration section */
@@ -329,7 +341,6 @@
329341
isa = XCBuildConfiguration;
330342
buildSettings = {
331343
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
332-
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
333344
INFOPLIST_FILE = LoveFinder/Info.plist;
334345
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
335346
PRODUCT_BUNDLE_IDENTIFIER = "com.rushjet.$(PRODUCT_NAME:rfc1034identifier)";
@@ -341,7 +352,6 @@
341352
isa = XCBuildConfiguration;
342353
buildSettings = {
343354
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
344-
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
345355
INFOPLIST_FILE = LoveFinder/Info.plist;
346356
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
347357
PRODUCT_BUNDLE_IDENTIFIER = "com.rushjet.$(PRODUCT_NAME:rfc1034identifier)";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15A284" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
3+
<dependencies>
4+
<deployment identifier="iOS"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
6+
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
7+
</dependencies>
8+
<scenes>
9+
<!--View Controller-->
10+
<scene sceneID="EHf-IW-A2E">
11+
<objects>
12+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
13+
<layoutGuides>
14+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
15+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
16+
</layoutGuides>
17+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
18+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
19+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
20+
<subviews>
21+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright © 2016 rushjet. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
22+
<rect key="frame" x="20" y="559" width="560" height="21"/>
23+
<fontDescription key="fontDescription" type="system" pointSize="17"/>
24+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
25+
<nil key="highlightedColor"/>
26+
</label>
27+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="LoveFinder" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
28+
<rect key="frame" x="20" y="180" width="560" height="43"/>
29+
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
30+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
31+
<nil key="highlightedColor"/>
32+
</label>
33+
</subviews>
34+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
35+
<constraints>
36+
<constraint firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
37+
<constraint firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
38+
<constraint firstItem="obG-Y5-kRd" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" constant="20" symbolic="YES" id="SfN-ll-jLj"/>
39+
<constraint firstAttribute="bottom" secondItem="obG-Y5-kRd" secondAttribute="bottom" constant="20" id="Y44-ml-fuU"/>
40+
<constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
41+
<constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" constant="20" symbolic="YES" id="x7j-FC-K8j"/>
42+
</constraints>
43+
</view>
44+
</viewController>
45+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
46+
</objects>
47+
<point key="canvasLocation" x="53" y="375"/>
48+
</scene>
49+
</scenes>
50+
</document>

LoveFinder/Images.xcassets/AppIcon.appiconset/Contents.json

+15
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,30 @@
55
"size" : "29x29",
66
"scale" : "2x"
77
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "29x29",
11+
"scale" : "3x"
12+
},
813
{
914
"idiom" : "iphone",
1015
"size" : "40x40",
1116
"scale" : "2x"
1217
},
18+
{
19+
"idiom" : "iphone",
20+
"size" : "40x40",
21+
"scale" : "3x"
22+
},
1323
{
1424
"idiom" : "iphone",
1525
"size" : "60x60",
1626
"scale" : "2x"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"size" : "60x60",
31+
"scale" : "3x"
1732
}
1833
],
1934
"info" : {
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}

LoveFinder/Images.xcassets/LaunchImage.launchimage/Contents.json

-23
This file was deleted.

LoveFinder/Info.plist

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<string>1</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
25+
<key>UILaunchStoryboardName</key>
26+
<string>Launch Screen</string>
2527
<key>UIMainStoryboardFile</key>
2628
<string>Main</string>
2729
<key>UIRequiredDeviceCapabilities</key>

0 commit comments

Comments
 (0)