Commit c406fcc8 authored by giovannicariglia's avatar giovannicariglia

added navi controller

parent ccf97bb1
......@@ -15,6 +15,7 @@
9AB7E3ED259D06C8008F9DD8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9AB7E3EB259D06C8008F9DD8 /* Main.storyboard */; };
9AB7E3EF259D06CB008F9DD8 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9AB7E3EE259D06CB008F9DD8 /* Assets.xcassets */; };
9AB7E3F2259D06CB008F9DD8 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9AB7E3F0259D06CB008F9DD8 /* LaunchScreen.storyboard */; };
9AEA96C725A2168D00EC932D /* EditorController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AEA96C625A2168D00EC932D /* EditorController.swift */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
......@@ -28,6 +29,7 @@
9AB7E3EE259D06CB008F9DD8 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
9AB7E3F1259D06CB008F9DD8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
9AB7E3F3259D06CB008F9DD8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9AEA96C625A2168D00EC932D /* EditorController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EditorController.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
......@@ -69,6 +71,7 @@
9AB7E3F3259D06CB008F9DD8 /* Info.plist */,
9A93295025A0FBC90025FC97 /* DashboardController.swift */,
9A93295325A0FBFF0025FC97 /* DetailsController.swift */,
9AEA96C625A2168D00EC932D /* EditorController.swift */,
);
path = "Test Login";
sourceTree = "<group>";
......@@ -147,6 +150,7 @@
9AB7E3EA259D06C8008F9DD8 /* ViewController.swift in Sources */,
9A93295425A0FBFF0025FC97 /* DetailsController.swift in Sources */,
9AB7E3E6259D06C8008F9DD8 /* AppDelegate.swift in Sources */,
9AEA96C725A2168D00EC932D /* EditorController.swift in Sources */,
9AB7E3E8259D06C8008F9DD8 /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
......
......@@ -17,18 +17,19 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Login" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mKq-00-e5h">
<rect key="frame" x="30" y="74" width="0.0" height="34"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle1"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="test" borderStyle="roundedRect" placeholder="Username" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="NM4-wK-TEp">
<rect key="frame" x="20" y="124" width="374" height="34"/>
<rect key="frame" x="30" y="138" width="354" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" keyboardType="emailAddress" smartDashesType="no" smartInsertDeleteType="no" smartQuotesType="no" textContentType="email"/>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="12345" borderStyle="roundedRect" placeholder="Password" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="a8u-lD-c6j">
<rect key="frame" x="20" y="168" width="374" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" secureTextEntry="YES" textContentType="password"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Lva-yI-FH7">
<rect key="frame" x="20" y="210" width="374" height="30"/>
<rect key="frame" x="30" y="244" width="354" height="30"/>
<color key="backgroundColor" systemColor="systemGray6Color"/>
<state key="normal" title="Login"/>
<connections>
......@@ -36,27 +37,35 @@
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="test" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tdn-lW-PNm">
<rect key="frame" x="20" y="248" width="374" height="20.5"/>
<rect key="frame" x="30" y="282" width="354" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" name="Blue-mid"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="12345" borderStyle="roundedRect" placeholder="Password" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="a8u-lD-c6j">
<rect key="frame" x="30" y="180" width="354" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" secureTextEntry="YES" textContentType="password"/>
</textField>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="a8u-lD-c6j" firstAttribute="top" secondItem="NM4-wK-TEp" secondAttribute="bottom" constant="10" id="4ic-LD-umv"/>
<constraint firstItem="tdn-lW-PNm" firstAttribute="top" secondItem="Lva-yI-FH7" secondAttribute="bottom" constant="8" symbolic="YES" id="7VX-WE-fzc"/>
<constraint firstItem="Lva-yI-FH7" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="20" id="83J-qN-tsP"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="tdn-lW-PNm" secondAttribute="trailing" constant="20" id="CED-PW-ffX"/>
<constraint firstItem="tdn-lW-PNm" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="20" id="Hhh-yI-DrJ"/>
<constraint firstItem="a8u-lD-c6j" firstAttribute="trailing" secondItem="Lva-yI-FH7" secondAttribute="trailing" id="TYE-wx-peu"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="Lva-yI-FH7" secondAttribute="trailing" constant="20" id="c2v-8a-lQG"/>
<constraint firstItem="a8u-lD-c6j" firstAttribute="trailing" secondItem="NM4-wK-TEp" secondAttribute="trailing" id="gkC-dK-r8g"/>
<constraint firstItem="a8u-lD-c6j" firstAttribute="leading" secondItem="Lva-yI-FH7" secondAttribute="leading" id="ict-A5-O0s"/>
<constraint firstItem="a8u-lD-c6j" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="top" constant="168" id="qMj-Gg-kl4"/>
<constraint firstItem="Lva-yI-FH7" firstAttribute="top" secondItem="a8u-lD-c6j" secondAttribute="bottom" constant="8" id="vKL-kz-5Zp"/>
<constraint firstItem="a8u-lD-c6j" firstAttribute="leading" secondItem="NM4-wK-TEp" secondAttribute="leading" id="voE-J1-dRf"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="mKq-00-e5h" secondAttribute="trailing" constant="30" id="1jh-DA-3fB"/>
<constraint firstItem="Lva-yI-FH7" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="30" id="2gl-b0-wWy"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="NM4-wK-TEp" secondAttribute="trailing" constant="30" id="4S8-3b-1h9"/>
<constraint firstItem="NM4-wK-TEp" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="30" id="I9W-bq-679"/>
<constraint firstItem="Lva-yI-FH7" firstAttribute="top" secondItem="a8u-lD-c6j" secondAttribute="bottom" constant="30" id="Jpr-XI-Qyd"/>
<constraint firstItem="mKq-00-e5h" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="30" id="KER-En-F67"/>
<constraint firstItem="tdn-lW-PNm" firstAttribute="top" secondItem="Lva-yI-FH7" secondAttribute="bottom" constant="8" id="NVx-Re-cZx"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="a8u-lD-c6j" secondAttribute="trailing" constant="30" id="QiG-Ix-iV9"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="tdn-lW-PNm" secondAttribute="trailing" constant="30" id="XHZ-Qd-dwS"/>
<constraint firstItem="NM4-wK-TEp" firstAttribute="top" secondItem="mKq-00-e5h" secondAttribute="bottom" constant="30" id="bRV-h8-Rbz"/>
<constraint firstItem="a8u-lD-c6j" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="30" id="k4g-YJ-hqq"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="Lva-yI-FH7" secondAttribute="trailing" constant="30" id="lVN-MF-wRH"/>
<constraint firstItem="tdn-lW-PNm" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="30" id="mNw-e6-VBE"/>
<constraint firstItem="a8u-lD-c6j" firstAttribute="top" secondItem="NM4-wK-TEp" secondAttribute="bottom" constant="8" id="o13-1R-egC"/>
<constraint firstItem="mKq-00-e5h" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="30" id="ox8-fo-f2a"/>
</constraints>
</view>
<connections>
......@@ -78,31 +87,98 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Details" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="28Z-72-yGc">
<rect key="frame" x="166" y="438" width="83" height="34"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Details" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="28Z-72-yGc">
<rect key="frame" x="50" y="138" width="314" height="34"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle1"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ZHX-Pe-d3J">
<rect key="frame" x="26" y="44" width="34" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Back"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6ym-cO-Gyy">
<rect key="frame" x="30" y="180" width="354" height="30"/>
<color key="backgroundColor" name="Green"/>
<color key="tintColor" systemColor="secondarySystemGroupedBackgroundColor"/>
<state key="normal" title="Weiter"/>
<connections>
<segue destination="kMj-Bt-oLR" kind="show" id="wGX-po-uMB"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Jfl-jj-CAB">
<rect key="frame" x="30" y="250" width="354" height="30"/>
<color key="backgroundColor" name="Blue-mid"/>
<color key="tintColor" systemColor="secondarySystemGroupedBackgroundColor"/>
<state key="normal" title="Abbrechen"/>
<connections>
<segue destination="kI4-hZ-4S2" kind="unwind" unwindAction="unwindToDashboard:" id="6C0-4X-pfJ"/>
<segue destination="kI4-hZ-4S2" kind="unwind" unwindAction="unwindToDashboard:" id="JQY-aj-Ngs"/>
</connections>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="cTi-0O-ggi"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="Jfl-jj-CAB" firstAttribute="top" secondItem="6ym-cO-Gyy" secondAttribute="bottom" constant="40" id="16k-WL-Nqi"/>
<constraint firstAttribute="trailingMargin" secondItem="28Z-72-yGc" secondAttribute="trailing" constant="30" id="8eu-me-M70"/>
<constraint firstItem="Jfl-jj-CAB" firstAttribute="leading" secondItem="cTi-0O-ggi" secondAttribute="leading" constant="30" id="91T-jZ-yKk"/>
<constraint firstItem="cTi-0O-ggi" firstAttribute="trailing" secondItem="Jfl-jj-CAB" secondAttribute="trailing" constant="30" id="KMp-hQ-f8o"/>
<constraint firstItem="cTi-0O-ggi" firstAttribute="trailing" secondItem="6ym-cO-Gyy" secondAttribute="trailing" constant="30" id="O7c-Vh-eiW"/>
<constraint firstItem="28Z-72-yGc" firstAttribute="leading" secondItem="0OL-wO-wZW" secondAttribute="leadingMargin" constant="30" id="W3t-4i-j1u"/>
<constraint firstItem="28Z-72-yGc" firstAttribute="top" secondItem="0OL-wO-wZW" secondAttribute="topMargin" constant="50" id="bQy-rZ-wtC"/>
<constraint firstItem="6ym-cO-Gyy" firstAttribute="top" secondItem="28Z-72-yGc" secondAttribute="bottom" constant="8" id="eq3-0X-vK0"/>
<constraint firstItem="6ym-cO-Gyy" firstAttribute="leading" secondItem="cTi-0O-ggi" secondAttribute="leading" constant="30" id="yb7-xo-zGh"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="Ulg-uB-Fmw"/>
<navigationItem key="navigationItem" title="Details" id="Ulg-uB-Fmw">
<barButtonItem key="backBarButtonItem" title="Zurück" id="w8y-WK-Tfo"/>
</navigationItem>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Tvg-21-Wq8" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
<exit id="kI4-hZ-4S2" userLabel="Exit" sceneMemberID="exit"/>
</objects>
<point key="canvasLocation" x="1688" y="-190"/>
<point key="canvasLocation" x="1920" y="-199"/>
</scene>
<!--Details 2-->
<scene sceneID="10o-xf-Kuf">
<objects>
<viewController id="kMj-Bt-oLR" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="hQ2-jX-hIx">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Details 2" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Fx7-Jr-fjT">
<rect key="frame" x="30" y="138" width="354" height="34"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle1"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="OQj-Ve-cta"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="Fx7-Jr-fjT" firstAttribute="leading" secondItem="OQj-Ve-cta" secondAttribute="leading" constant="30" id="277-9N-hlu"/>
<constraint firstItem="Fx7-Jr-fjT" firstAttribute="top" secondItem="OQj-Ve-cta" secondAttribute="top" constant="50" id="JV8-PQ-dXD"/>
<constraint firstItem="OQj-Ve-cta" firstAttribute="trailing" secondItem="Fx7-Jr-fjT" secondAttribute="trailing" constant="30" id="ccn-ub-Mtw"/>
</constraints>
</view>
<navigationItem key="navigationItem" title="Details 2" id="gsa-jp-BHv"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="5Js-Jh-FYF" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2668" y="-200"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="noK-3T-Xfp">
<objects>
<navigationController id="TWI-Yk-hmC" sceneMemberID="viewController">
<navigationBar key="navigationBar" contentMode="scaleToFill" id="5sP-26-5ml">
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<connections>
<segue destination="F2V-u1-8YK" kind="relationship" relationship="rootViewController" id="ebS-Zh-2IH"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="2MO-hd-7aJ" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1158" y="-722"/>
</scene>
<!--ViewDashboard-->
<scene sceneID="rVw-uf-UyJ">
......@@ -112,17 +188,32 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YX9-Pw-vQ8">
<rect key="frame" x="148" y="44" width="119" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="odh-Jl-hxa">
<rect key="frame" x="20" y="54" width="48" height="30"/>
<state key="normal" title="Logout"/>
<connections>
<segue destination="evz-Go-xPe" kind="unwind" unwindAction="unwindToLogin:" id="FVN-oc-5Gj"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Dashboard" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qfr-bz-VeU">
<rect key="frame" x="30" y="84" width="0.0" height="34"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle1"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YX9-Pw-vQ8">
<rect key="frame" x="30" y="148" width="354" height="30"/>
<color key="backgroundColor" name="Blue"/>
<color key="tintColor" systemColor="secondarySystemBackgroundColor"/>
<state key="normal" title="Zum View Details"/>
<connections>
<segue destination="F2V-u1-8YK" kind="presentation" modalPresentationStyle="overFullScreen" modalTransitionStyle="coverVertical" id="dcy-0Q-cEq"/>
<segue destination="TWI-Yk-hmC" kind="presentation" modalPresentationStyle="currentContext" id="5AZ-V3-26C"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vSb-oi-hLO">
<rect key="frame" x="151" y="82" width="113" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vSb-oi-hLO">
<rect key="frame" x="30" y="186" width="354" height="30"/>
<color key="backgroundColor" name="Blue-mid"/>
<color key="tintColor" systemColor="secondarySystemGroupedBackgroundColor"/>
<state key="normal" title="Zum View Editor"/>
<connections>
<segue destination="STw-yD-qEK" kind="popoverPresentation" popoverAnchorView="vSb-oi-hLO" id="MpL-F6-YyB">
......@@ -130,54 +221,117 @@
</segue>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="odh-Jl-hxa">
<rect key="frame" x="20" y="44" width="48" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Logout"/>
<connections>
<segue destination="evz-Go-xPe" kind="unwind" unwindAction="unwindToLogin:" id="FVN-oc-5Gj"/>
</connections>
</button>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="bB9-Rc-9vo">
<rect key="frame" x="30" y="232" width="354" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="flW-CY-cP2">
<rect key="frame" x="30" y="274" width="42" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="shT-0T-BcP"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="vSb-oi-hLO" firstAttribute="top" secondItem="YX9-Pw-vQ8" secondAttribute="bottom" constant="8" id="08b-DU-ICu"/>
<constraint firstItem="bB9-Rc-9vo" firstAttribute="top" secondItem="vSb-oi-hLO" secondAttribute="bottom" constant="16" id="16R-qH-meO"/>
<constraint firstItem="odh-Jl-hxa" firstAttribute="leading" secondItem="shT-0T-BcP" secondAttribute="leading" constant="20" id="1fz-7x-baZ"/>
<constraint firstItem="qfr-bz-VeU" firstAttribute="leading" secondItem="shT-0T-BcP" secondAttribute="leading" constant="30" id="1jd-0N-9mh"/>
<constraint firstItem="bB9-Rc-9vo" firstAttribute="leading" secondItem="shT-0T-BcP" secondAttribute="leading" constant="30" id="5sN-EE-Crb"/>
<constraint firstItem="odh-Jl-hxa" firstAttribute="top" secondItem="shT-0T-BcP" secondAttribute="top" constant="10" id="6an-ks-zqx"/>
<constraint firstItem="YX9-Pw-vQ8" firstAttribute="top" secondItem="qfr-bz-VeU" secondAttribute="bottom" constant="30" id="EJj-dp-MEP"/>
<constraint firstItem="flW-CY-cP2" firstAttribute="leading" secondItem="shT-0T-BcP" secondAttribute="leading" constant="30" id="GAS-sd-6hy"/>
<constraint firstItem="flW-CY-cP2" firstAttribute="top" secondItem="bB9-Rc-9vo" secondAttribute="bottom" constant="8" id="MVB-ep-9Xm"/>
<constraint firstItem="shT-0T-BcP" firstAttribute="trailing" secondItem="vSb-oi-hLO" secondAttribute="trailing" constant="30" id="S9f-g2-6Ha"/>
<constraint firstItem="YX9-Pw-vQ8" firstAttribute="leading" secondItem="shT-0T-BcP" secondAttribute="leading" constant="30" id="VMf-0W-Sre"/>
<constraint firstItem="shT-0T-BcP" firstAttribute="trailing" secondItem="qfr-bz-VeU" secondAttribute="trailing" constant="30" id="aDn-ZS-YOo"/>
<constraint firstItem="qfr-bz-VeU" firstAttribute="top" secondItem="shT-0T-BcP" secondAttribute="top" constant="40" id="g4I-L6-ioX"/>
<constraint firstItem="shT-0T-BcP" firstAttribute="trailing" secondItem="YX9-Pw-vQ8" secondAttribute="trailing" constant="30" id="kjD-mp-nwF"/>
<constraint firstItem="vSb-oi-hLO" firstAttribute="leading" secondItem="shT-0T-BcP" secondAttribute="leading" constant="30" id="maS-Cm-6qC"/>
<constraint firstItem="shT-0T-BcP" firstAttribute="trailing" secondItem="bB9-Rc-9vo" secondAttribute="trailing" constant="30" id="qob-tx-61a"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="2no-mZ-v8e"/>
<connections>
<outlet property="labelAnswer" destination="flW-CY-cP2" id="8SX-37-mjs"/>
<outlet property="tfDemo" destination="bB9-Rc-9vo" id="ODt-zh-Iov"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="b1t-Ft-SgK" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
<exit id="evz-Go-xPe" userLabel="Exit" sceneMemberID="exit"/>
</objects>
<point key="canvasLocation" x="896" y="114"/>
<point key="canvasLocation" x="895.6521739130435" y="113.83928571428571"/>
</scene>
<!--ViewEditor-->
<scene sceneID="hHd-0y-1Su">
<objects>
<viewController title="ViewEditor" id="STw-yD-qEK" sceneMemberID="viewController">
<viewController title="ViewEditor" id="STw-yD-qEK" customClass="EditorController" customModule="Test_Login" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="DbM-5t-1Ci">
<rect key="frame" x="0.0" y="0.0" width="414" height="842"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Editor" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2JI-H5-RWi">
<rect key="frame" x="172" y="438" width="71" height="34"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Editor" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2JI-H5-RWi">
<rect key="frame" x="30" y="20" width="0.0" height="34"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle1"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="tXM-ta-2pK">
<rect key="frame" x="30" y="62" width="354" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pII-bl-Sdj">
<rect key="frame" x="30" y="104" width="42" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="71w-lR-vRz"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="2JI-H5-RWi" firstAttribute="leading" secondItem="71w-lR-vRz" secondAttribute="leading" constant="30" id="2Se-qW-RSB"/>
<constraint firstItem="2JI-H5-RWi" firstAttribute="top" secondItem="71w-lR-vRz" secondAttribute="top" constant="20" id="TDx-ke-aTq"/>
<constraint firstItem="pII-bl-Sdj" firstAttribute="leading" secondItem="71w-lR-vRz" secondAttribute="leading" constant="30" id="VxF-Hh-xDJ"/>
<constraint firstItem="tXM-ta-2pK" firstAttribute="leading" secondItem="71w-lR-vRz" secondAttribute="leading" constant="30" id="dra-Ab-17h"/>
<constraint firstItem="71w-lR-vRz" firstAttribute="trailing" secondItem="tXM-ta-2pK" secondAttribute="trailing" constant="30" id="eNd-Yx-nfo"/>
<constraint firstItem="71w-lR-vRz" firstAttribute="trailing" secondItem="2JI-H5-RWi" secondAttribute="trailing" constant="30" id="g8B-nZ-uMo"/>
<constraint firstItem="tXM-ta-2pK" firstAttribute="top" secondItem="2JI-H5-RWi" secondAttribute="bottom" constant="8" symbolic="YES" id="h8N-Vq-84X"/>
<constraint firstItem="pII-bl-Sdj" firstAttribute="top" secondItem="tXM-ta-2pK" secondAttribute="bottom" constant="8" id="j6p-IV-XwW"/>
</constraints>
</view>
<connections>
<outlet property="labelQuestion" destination="pII-bl-Sdj" id="9ba-C2-4Nw"/>
<outlet property="tfDemo" destination="tXM-ta-2pK" id="k7t-Dg-iFV"/>
<segue destination="m5q-p2-ZXE" kind="unwind" identifier="segueUnwindEditorToDashboard" unwindAction="unwindToDashboard:" id="xHO-Ww-nia"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="BXJ-R7-5W5" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
<exit id="m5q-p2-ZXE" userLabel="Exit" sceneMemberID="exit"/>
</objects>
<point key="canvasLocation" x="1690" y="459"/>
<point key="canvasLocation" x="1697" y="460"/>
</scene>
</scenes>
<resources>
<namedColor name="Blue">
<color red="0.18000000715255737" green="0.27500000596046448" blue="0.40400001406669617" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="Blue-mid">
<color red="0.20399999618530273" green="0.45500001311302185" blue="0.80000001192092896" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="Green">
<color red="0.45899999141693115" green="0.60000002384185791" blue="0.3919999897480011" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="secondarySystemBackgroundColor">
<color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="secondarySystemGroupedBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
......
......@@ -9,6 +9,9 @@ import UIKit
class DashboardController: UIViewController {
@IBOutlet weak var tfDemo: UITextField!
@IBOutlet weak var labelAnswer: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
......@@ -18,17 +21,16 @@ class DashboardController: UIViewController {
@IBAction func unwindToDashboard(_ unwindSegue: UIStoryboardSegue) {
//let sourceViewController = unwindSegue.source
// Use data from the view controller which initiated the unwind segue
if let src = unwindSegue.source as? EditorController {
labelAnswer.text = src.tfDemo.text
}
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
if let dest = segue.destination as? EditorController {
dest.msg = tfDemo.text!
tfDemo.text = ""
}
}
*/
}
//
// DetailsController.swift
// Test Login
//
// Created by Giovanni Cariglia on 02.01.21.
//
import UIKit
class EditorController: UIViewController, UITextFieldDelegate {
@IBOutlet weak var tfDemo: UITextField!
@IBOutlet weak var labelQuestion: UILabel!
var msg = ""
override func viewDidLoad() {
super.viewDidLoad()
labelQuestion.text = msg
tfDemo.delegate = self
// Do any additional setup after loading the view.
}
@IBAction func unwindToEditor(_ unwindSegue: UIStoryboardSegue) {
//let sourceViewController = unwindSegue.source
// Use data from the view controller which initiated the unwind segue
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
view.endEditing(true)
performSegue(withIdentifier: "segueUnwindEditorToDashboard", sender: self)
return false
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment