Skip to content

Commit 0251a37

Browse files
authored
iOS template update - Launch Screen (#6983)
* delete old assets * add logo svg * modernize launchscreen * removing Brand Assets from pbxproj #changelog #ios
1 parent 625df26 commit 0251a37

23 files changed

+58
-211
lines changed

scripts/templates/ios/emptyExample.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
<key>ASSETCATALOG_COMPILER_APPICON_NAME</key>
143143
<string>AppIcon</string>
144144
<key>ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME</key>
145-
<string>Brand Assets</string>
145+
<string></string>
146146
<key>FRAMEWORK_SEARCH_PATHS</key>
147147
<array>
148148
<string>$(inherited)</string>
@@ -175,7 +175,7 @@
175175
<key>ASSETCATALOG_COMPILER_APPICON_NAME</key>
176176
<string>AppIcon</string>
177177
<key>ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME</key>
178-
<string>Brand Assets</string>
178+
<string></string>
179179
<key>FRAMEWORK_SEARCH_PATHS</key>
180180
<array>
181181
<string>$(inherited)</string>

scripts/templates/ios/mediaAssets/Images.xcassets/Background.imageset/Contents.json

-23
This file was deleted.

scripts/templates/ios/mediaAssets/Images.xcassets/Brand Assets.launchimage/Contents.json

-134
This file was deleted.

scripts/templates/ios/mediaAssets/Images.xcassets/Logo.imageset/Contents.json

-23
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
},
6+
"symbols" : [
7+
{
8+
"filename" : "of.svg",
9+
"idiom" : "universal"
10+
}
11+
]
12+
}
Loading
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,52 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3-
<device id="retina4_7" orientation="portrait">
4-
<adaptation id="fullscreen"/>
5-
</device>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<device id="retina6_1" orientation="portrait" appearance="light"/>
64
<dependencies>
75
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
9-
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
7+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
8+
<capability name="System colors in document resources" minToolsVersion="11.0"/>
109
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1110
</dependencies>
1211
<scenes>
1312
<!--View Controller-->
1413
<scene sceneID="EHf-IW-A2E">
1514
<objects>
1615
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
17-
<layoutGuides>
18-
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
19-
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
20-
</layoutGuides>
2116
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
22-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
2318
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2419
<subviews>
25-
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="Background" translatesAutoresizingMaskIntoConstraints="NO" id="1Ps-5a-wQE">
26-
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
27-
</imageView>
28-
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="Logo" translatesAutoresizingMaskIntoConstraints="NO" id="hCy-Sg-N4N">
29-
<rect key="frame" x="36" y="240" width="341" height="256"/>
30-
<constraints>
31-
<constraint firstAttribute="width" secondItem="hCy-Sg-N4N" secondAttribute="height" multiplier="341:256" id="7bg-Pd-V4M"/>
32-
</constraints>
20+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
21+
<rect key="frame" x="0.0" y="876" width="414" height="0.0"/>
22+
<fontDescription key="fontDescription" type="system" pointSize="17"/>
23+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
24+
<nil key="highlightedColor"/>
25+
</label>
26+
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" fixedFrame="YES" image="Logo" translatesAutoresizingMaskIntoConstraints="NO" id="uYM-tn-pIN">
27+
<rect key="frame" x="116" y="398" width="182" height="100"/>
28+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
29+
<color key="tintColor" systemColor="labelColor"/>
3330
</imageView>
3431
</subviews>
35-
<color key="backgroundColor" red="0.90196078431372551" green="0.90196078431372551" blue="0.90196078431372551" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
32+
<viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
33+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3634
<constraints>
37-
<constraint firstItem="1Ps-5a-wQE" firstAttribute="centerX" secondItem="hCy-Sg-N4N" secondAttribute="centerX" id="0OI-2L-cEK"/>
38-
<constraint firstItem="1Ps-5a-wQE" firstAttribute="bottom" secondItem="xb3-aO-Qok" secondAttribute="top" id="MQO-GI-am3"/>
39-
<constraint firstItem="1Ps-5a-wQE" firstAttribute="width" secondItem="Ze5-6b-2t3" secondAttribute="width" id="dq4-Qv-rDP"/>
40-
<constraint firstItem="hCy-Sg-N4N" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="hF8-3a-UTD"/>
41-
<constraint firstItem="1Ps-5a-wQE" firstAttribute="height" secondItem="Ze5-6b-2t3" secondAttribute="height" id="hsl-L6-dMb"/>
42-
<constraint firstItem="hCy-Sg-N4N" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="neI-al-F3p"/>
35+
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
36+
<constraint firstItem="obG-Y5-kRd" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="20" symbolic="YES" id="SfN-ll-jLj"/>
37+
<constraint firstAttribute="bottom" secondItem="obG-Y5-kRd" secondAttribute="bottom" constant="20" id="Y44-ml-fuU"/>
4338
</constraints>
4439
</view>
4540
</viewController>
4641
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
4742
</objects>
48-
<point key="canvasLocation" x="52" y="374"/>
43+
<point key="canvasLocation" x="52.173913043478265" y="375"/>
4944
</scene>
5045
</scenes>
5146
<resources>
52-
<image name="Background" width="736" height="736"/>
53-
<image name="Logo" width="341" height="256"/>
47+
<image name="Logo" width="18" height="10"/>
48+
<systemColor name="labelColor">
49+
<color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
50+
</systemColor>
5451
</resources>
5552
</document>

0 commit comments

Comments
 (0)