Skip to content

Commit 3a934fb

Browse files
authored
Merge pull request #21 from lauramarson/launchScreen
create launch screen
2 parents d61e735 + b0d61d9 commit 3a934fb

8 files changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}

AnimalsApp/AnimalsApp/Assets.xcassets/imagePlaceholder.imageset/Contents.json renamed to AnimalsApp/AnimalsApp/Assets.xcassets/Images/imagePlaceholder.imageset/Contents.json

File renamed without changes.

AnimalsApp/AnimalsApp/Assets.xcassets/imagePlaceholder.imageset/imagePlaceholder.png renamed to AnimalsApp/AnimalsApp/Assets.xcassets/Images/imagePlaceholder.imageset/imagePlaceholder.png

File renamed without changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "logo.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "logo@2x.png",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "logo@3x.png",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}
5.86 KB
Loading
17 KB
Loading
33.3 KB
Loading

AnimalsApp/AnimalsApp/Base.lproj/LaunchScreen.storyboard

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,22 @@
1616
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
1717
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
1818
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19+
<subviews>
20+
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="logo" translatesAutoresizingMaskIntoConstraints="NO" id="OZd-xi-klQ">
21+
<rect key="frame" x="82" y="323" width="250" height="250"/>
22+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
23+
<constraints>
24+
<constraint firstAttribute="height" constant="250" id="HpZ-xk-1HI"/>
25+
<constraint firstAttribute="width" constant="250" id="dcb-2V-ppG"/>
26+
</constraints>
27+
</imageView>
28+
</subviews>
1929
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
2030
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
31+
<constraints>
32+
<constraint firstItem="OZd-xi-klQ" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="ke1-U4-w40"/>
33+
<constraint firstItem="OZd-xi-klQ" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="y4a-dp-FXN"/>
34+
</constraints>
2135
</view>
2236
</viewController>
2337
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
@@ -26,6 +40,7 @@
2640
</scene>
2741
</scenes>
2842
<resources>
43+
<image name="logo" width="250" height="250"/>
2944
<systemColor name="systemBackgroundColor">
3045
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
3146
</systemColor>

0 commit comments

Comments
 (0)