Skip to content

Commit

Permalink
add launchscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
ahikmatf committed Jan 22, 2024
1 parent 1c0fd0d commit 983e668
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Learnimal.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
E98DC31E2B5BD14A0027EC3E /* AnimalVarianceResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = E98DC31D2B5BD14A0027EC3E /* AnimalVarianceResult.swift */; };
E98DC3202B5C16880027EC3E /* AnimalImageResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = E98DC31F2B5C16880027EC3E /* AnimalImageResult.swift */; };
E98DC3232B5C38DD0027EC3E /* AnimalImageViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E98DC3222B5C38DC0027EC3E /* AnimalImageViewModel.swift */; };
E98DC3292B5EA6E00027EC3E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E98DC3282B5EA6E00027EC3E /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -86,6 +87,7 @@
E98DC31D2B5BD14A0027EC3E /* AnimalVarianceResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimalVarianceResult.swift; sourceTree = "<group>"; };
E98DC31F2B5C16880027EC3E /* AnimalImageResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimalImageResult.swift; sourceTree = "<group>"; };
E98DC3222B5C38DC0027EC3E /* AnimalImageViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimalImageViewModel.swift; sourceTree = "<group>"; };
E98DC3282B5EA6E00027EC3E /* LaunchScreen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -177,6 +179,7 @@
isa = PBXGroup;
children = (
E98DC2B12B56DC750027EC3E /* LearnimalApp.swift */,
E98DC3282B5EA6E00027EC3E /* LaunchScreen.storyboard */,
);
path = App;
sourceTree = "<group>";
Expand Down Expand Up @@ -414,6 +417,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E98DC3292B5EA6E00027EC3E /* LaunchScreen.storyboard in Resources */,
E98DC2B92B56DC770027EC3E /* Preview Assets.xcassets in Resources */,
E98DC2B62B56DC770027EC3E /* Assets.xcassets in Resources */,
);
Expand Down Expand Up @@ -631,6 +635,7 @@
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen.storyboard;
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -658,6 +663,7 @@
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen.storyboard;
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down
54 changes: 54 additions & 0 deletions Learnimal/App/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Y6W-OH-hqX">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="s0d-6b-0kx">
<objects>
<viewController id="Y6W-OH-hqX" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="5EZ-qb-Rvc">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="animal-elephant" translatesAutoresizingMaskIntoConstraints="NO" id="uUZ-l3-6bj">
<rect key="frame" x="76.666666666666686" y="222.66666666666663" width="240" height="240"/>
<constraints>
<constraint firstAttribute="width" secondItem="uUZ-l3-6bj" secondAttribute="height" id="CcN-Qz-LRG"/>
<constraint firstAttribute="width" constant="240" id="U0i-HK-vFy"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Learnimal" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Uoy-Vd-Q8x">
<rect key="frame" x="114.33333333333333" y="482.66666666666669" width="164.33333333333337" height="43.000000000000057"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="vDu-zF-Fre"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="uUZ-l3-6bj" firstAttribute="centerX" secondItem="vDu-zF-Fre" secondAttribute="centerX" id="9qD-pN-Bv8"/>
<constraint firstItem="uUZ-l3-6bj" firstAttribute="centerY" secondItem="vDu-zF-Fre" secondAttribute="centerY" constant="-96" id="CgS-hk-p4j"/>
<constraint firstItem="Uoy-Vd-Q8x" firstAttribute="top" secondItem="uUZ-l3-6bj" secondAttribute="bottom" constant="20" id="eQB-rU-chD"/>
<constraint firstItem="Uoy-Vd-Q8x" firstAttribute="centerX" secondItem="uUZ-l3-6bj" secondAttribute="centerX" id="uLz-9w-UHN"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Ief-a0-LHa" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="140" y="4"/>
</scene>
</scenes>
<resources>
<image name="animal-elephant" width="4675" height="4675"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

0 comments on commit 983e668

Please sign in to comment.