Skip to content

Commit 60a76f1

Browse files
committed
Added StartVIewController for additional testing
1 parent 45c6f33 commit 60a76f1

File tree

3 files changed

+64
-1
lines changed

3 files changed

+64
-1
lines changed

quickstart-ios-swift.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
19FB9DAC239E65ED0056E3AB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 19FB9DAA239E65ED0056E3AB /* Main.storyboard */; };
4040
19FB9DAE239E65EE0056E3AB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 19FB9DAD239E65EE0056E3AB /* Assets.xcassets */; };
4141
19FB9DB1239E65EE0056E3AB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 19FB9DAF239E65EE0056E3AB /* LaunchScreen.storyboard */; };
42+
9A49710124FE579800DD9C86 /* StartViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A49710024FE579800DD9C86 /* StartViewController.swift */; };
4243
9AB9D14824EAE3DD00E659AA /* DeepAR.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AB9D14624EAE3D700E659AA /* DeepAR.framework */; };
4344
9AB9D14924EAE3DD00E659AA /* DeepAR.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9AB9D14624EAE3D700E659AA /* DeepAR.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
4445
9AD3123024BE299500B2CDD0 /* bcgSeg in Resources */ = {isa = PBXBuildFile; fileRef = 9AD3122F24BE299500B2CDD0 /* bcgSeg */; };
@@ -94,6 +95,7 @@
9495
19FB9DAD239E65EE0056E3AB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
9596
19FB9DB0239E65EE0056E3AB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
9697
19FB9DB2239E65EE0056E3AB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
98+
9A49710024FE579800DD9C86 /* StartViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StartViewController.swift; sourceTree = "<group>"; };
9799
9AB9D14624EAE3D700E659AA /* DeepAR.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = DeepAR.framework; sourceTree = "<group>"; };
98100
9AD3122F24BE299500B2CDD0 /* bcgSeg */ = {isa = PBXFileReference; lastKnownFileType = file; path = bcgSeg; sourceTree = "<group>"; };
99101
9AD3123124BE29D700B2CDD0 /* look2 */ = {isa = PBXFileReference; lastKnownFileType = file; path = look2; sourceTree = "<group>"; };
@@ -178,6 +180,7 @@
178180
198B5D5C239FDE4F0035E21B /* Effects */,
179181
198B5D56239E96A70035E21B /* Frameworks */,
180182
19FB9DA4239E65ED0056E3AB /* AppDelegate.swift */,
183+
9A49710024FE579800DD9C86 /* StartViewController.swift */,
181184
19FB9DA8239E65ED0056E3AB /* ViewController.swift */,
182185
19FB9DAA239E65ED0056E3AB /* Main.storyboard */,
183186
19FB9DAD239E65EE0056E3AB /* Assets.xcassets */,
@@ -297,6 +300,7 @@
297300
files = (
298301
19FB9DA9239E65ED0056E3AB /* ViewController.swift in Sources */,
299302
19FB9DA5239E65ED0056E3AB /* AppDelegate.swift in Sources */,
303+
9A49710124FE579800DD9C86 /* StartViewController.swift in Sources */,
300304
);
301305
runOnlyForDeploymentPostprocessing = 0;
302306
};

quickstart-ios-swift/Base.lproj/Main.storyboard

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,42 @@
77
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
88
</dependencies>
99
<scenes>
10+
<!--Start View Controller-->
11+
<scene sceneID="IJB-rC-kzG">
12+
<objects>
13+
<viewController id="DMk-4X-Ojf" customClass="StartViewController" customModule="quickstart_ios_swift" sceneMemberID="viewController">
14+
<view key="view" contentMode="scaleToFill" id="cf3-f9-GnH">
15+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
16+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
17+
<subviews>
18+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="AFc-MD-BWd">
19+
<rect key="frame" x="161" y="433" width="92" height="30"/>
20+
<constraints>
21+
<constraint firstAttribute="height" constant="30" id="ovn-X6-rfQ"/>
22+
<constraint firstAttribute="width" constant="92" id="tLw-SC-9xM"/>
23+
</constraints>
24+
<state key="normal" title="Go to Deepar"/>
25+
<connections>
26+
<action selector="goToDeepAR:" destination="DMk-4X-Ojf" eventType="touchUpInside" id="3fO-JD-xHF"/>
27+
</connections>
28+
</button>
29+
</subviews>
30+
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
31+
<constraints>
32+
<constraint firstItem="AFc-MD-BWd" firstAttribute="centerX" secondItem="cf3-f9-GnH" secondAttribute="centerX" id="MB4-DU-LIP"/>
33+
<constraint firstItem="AFc-MD-BWd" firstAttribute="centerY" secondItem="cf3-f9-GnH" secondAttribute="centerY" id="vun-mH-zlj"/>
34+
</constraints>
35+
<viewLayoutGuide key="safeArea" id="12f-HE-CTu"/>
36+
</view>
37+
</viewController>
38+
<placeholder placeholderIdentifier="IBFirstResponder" id="GkG-WV-O2V" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
39+
</objects>
40+
<point key="canvasLocation" x="-1081" y="166"/>
41+
</scene>
1042
<!--View Controller-->
1143
<scene sceneID="tne-QT-ifu">
1244
<objects>
13-
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="quickstart_ios_swift" customModuleProvider="target" sceneMemberID="viewController">
45+
<viewController storyboardIdentifier="ViewController" id="BYZ-38-t0r" customClass="ViewController" customModule="quickstart_ios_swift" customModuleProvider="target" sceneMemberID="viewController">
1446
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
1547
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
1648
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//
2+
// StartViewController.swift
3+
// quickstart-ios-swift
4+
//
5+
// Created by Matej Trbara on 01/09/2020.
6+
// Copyright © 2020 Lara Vertlberg. All rights reserved.
7+
//
8+
9+
import Foundation
10+
import UIKit
11+
12+
13+
class StartViewController : UIViewController {
14+
15+
16+
override func viewDidLoad() {
17+
super.viewDidLoad()
18+
}
19+
@IBAction func goToDeepAR(_ sender: Any) {
20+
21+
if let vc = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "ViewController") as? ViewController
22+
{
23+
present(vc, animated: true, completion: nil)
24+
}
25+
}
26+
27+
}

0 commit comments

Comments
 (0)