|
3 | 3 | <dependencies> |
4 | 4 | <deployment identifier="iOS"/> |
5 | 5 | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/> |
| 6 | + <capability name="Constraints to layout margins" minToolsVersion="6.0"/> |
6 | 7 | </dependencies> |
7 | 8 | <scenes> |
8 | 9 | <!--Navigation Controller--> |
|
21 | 22 | </objects> |
22 | 23 | <point key="canvasLocation" x="-658" y="301"/> |
23 | 24 | </scene> |
24 | | - <!--View Controller--> |
| 25 | + <!--Star Wars View Controller--> |
25 | 26 | <scene sceneID="adh-8k-Iuh"> |
26 | 27 | <objects> |
27 | | - <viewController id="rPr-Fp-ALE" sceneMemberID="viewController"> |
| 28 | + <viewController id="rPr-Fp-ALE" customClass="StarWarsViewController" customModule="APIClient" customModuleProvider="target" sceneMemberID="viewController"> |
28 | 29 | <layoutGuides> |
29 | | - <viewControllerLayoutGuide type="top" id="pj8-zF-1z6"/> |
30 | | - <viewControllerLayoutGuide type="bottom" id="kt2-9S-3TK"/> |
| 30 | + <viewControllerLayoutGuide type="top" id="chM-FO-a62"/> |
| 31 | + <viewControllerLayoutGuide type="bottom" id="7iq-nK-Ekc"/> |
31 | 32 | </layoutGuides> |
32 | | - <view key="view" contentMode="scaleToFill" id="rEB-Za-Zhx"> |
| 33 | + <view key="view" contentMode="scaleToFill" id="bBw-Ym-2uK"> |
33 | 34 | <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> |
34 | | - <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
| 35 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
| 36 | + <subviews> |
| 37 | + <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="PyA-76-HkM"> |
| 38 | + <rect key="frame" x="20" y="64" width="560" height="200"/> |
| 39 | + <subviews> |
| 40 | + <stackView opaque="NO" contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Fed-da-Z7f"> |
| 41 | + <rect key="frame" x="0.0" y="0.0" width="560" height="128"/> |
| 42 | + <subviews> |
| 43 | + <activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" misplaced="YES" style="gray" translatesAutoresizingMaskIntoConstraints="NO" id="WIi-xB-SU0"> |
| 44 | + <rect key="frame" x="0.0" y="0.0" width="20" height="128"/> |
| 45 | + </activityIndicatorView> |
| 46 | + <imageView hidden="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="DR2-O2-uIl"> |
| 47 | + <rect key="frame" x="20" y="0.0" width="0.0" height="128"/> |
| 48 | + </imageView> |
| 49 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="y6f-iU-cZH"> |
| 50 | + <rect key="frame" x="20" y="0.0" width="540" height="128"/> |
| 51 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> |
| 52 | + <color key="textColor" cocoaTouchSystemColor="darkTextColor"/> |
| 53 | + <nil key="highlightedColor"/> |
| 54 | + </label> |
| 55 | + </subviews> |
| 56 | + </stackView> |
| 57 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" misplaced="YES" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MNJ-HG-JlX"> |
| 58 | + <rect key="frame" x="0.0" y="128" width="560" height="21"/> |
| 59 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> |
| 60 | + <color key="textColor" cocoaTouchSystemColor="darkTextColor"/> |
| 61 | + <nil key="highlightedColor"/> |
| 62 | + </label> |
| 63 | + <button opaque="NO" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pdM-iY-5PV"> |
| 64 | + <rect key="frame" x="0.0" y="149" width="560" height="52"/> |
| 65 | + <state key="normal" title="Button"/> |
| 66 | + </button> |
| 67 | + </subviews> |
| 68 | + </stackView> |
| 69 | + </subviews> |
35 | 70 | <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> |
| 71 | + <constraints> |
| 72 | + <constraint firstItem="PyA-76-HkM" firstAttribute="top" secondItem="chM-FO-a62" secondAttribute="bottom" id="20W-JS-SCI"/> |
| 73 | + <constraint firstItem="7iq-nK-Ekc" firstAttribute="top" secondItem="PyA-76-HkM" secondAttribute="bottom" constant="336" id="kuu-ab-DLu"/> |
| 74 | + <constraint firstItem="PyA-76-HkM" firstAttribute="centerX" secondItem="bBw-Ym-2uK" secondAttribute="centerX" id="l1O-ME-tnZ"/> |
| 75 | + <constraint firstAttribute="trailingMargin" secondItem="PyA-76-HkM" secondAttribute="trailing" id="nFy-Gc-HDe"/> |
| 76 | + <constraint firstAttribute="leadingMargin" secondItem="PyA-76-HkM" secondAttribute="leading" id="sML-Po-ftm"/> |
| 77 | + </constraints> |
36 | 78 | </view> |
37 | | - <navigationItem key="navigationItem" id="CZR-l9-xMg"/> |
| 79 | + <navigationItem key="navigationItem" id="CZR-l9-xMg"> |
| 80 | + <nil key="title"/> |
| 81 | + <textField key="titleView" opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" id="xUM-UT-swT"> |
| 82 | + <rect key="frame" x="180" y="7" width="240" height="30"/> |
| 83 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
| 84 | + <fontDescription key="fontDescription" type="system" pointSize="14"/> |
| 85 | + <textInputTraits key="textInputTraits"/> |
| 86 | + </textField> |
| 87 | + </navigationItem> |
| 88 | + <connections> |
| 89 | + <outlet property="loadingIndicator" destination="WIi-xB-SU0" id="JLP-zs-ig3"/> |
| 90 | + <outlet property="planetLabel" destination="y6f-iU-cZH" id="Qi9-LI-6pw"/> |
| 91 | + <outlet property="searchTxtField" destination="xUM-UT-swT" id="Mje-gr-4AA"/> |
| 92 | + <outlet property="starShipImage" destination="DR2-O2-uIl" id="Vhn-p4-FZD"/> |
| 93 | + <outlet property="starShipLabel" destination="y6f-iU-cZH" id="OgI-WB-GUp"/> |
| 94 | + </connections> |
38 | 95 | </viewController> |
39 | 96 | <placeholder placeholderIdentifier="IBFirstResponder" id="OaC-W5-AeM" userLabel="First Responder" sceneMemberID="firstResponder"/> |
40 | 97 | </objects> |
41 | | - <point key="canvasLocation" x="65" y="301"/> |
| 98 | + <point key="canvasLocation" x="67" y="301"/> |
42 | 99 | </scene> |
43 | 100 | </scenes> |
44 | 101 | </document> |
0 commit comments