Skip to content

Commit a97fbb8

Browse files
committed
Add tableview and set auto layout constraints
1 parent fa063ef commit a97fbb8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

TestSwift/Base.lproj/Main.storyboard

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,30 @@
4848
<variation key="widthClass=compact" fixedFrame="YES">
4949
<rect key="frame" x="0.0" y="37" width="320" height="443"/>
5050
</variation>
51+
<variation key="heightClass=regular-widthClass=compact" ambiguous="YES" misplaced="YES">
52+
<rect key="frame" x="0.0" y="84" width="320" height="556"/>
53+
</variation>
5154
<connections>
5255
<outlet property="dataSource" destination="BYZ-38-t0r" id="Rph-up-PTP"/>
5356
<outlet property="delegate" destination="BYZ-38-t0r" id="zEB-7D-wXK"/>
5457
</connections>
5558
</tableView>
5659
</subviews>
5760
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
61+
<constraints>
62+
<constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="jTM-Fb-meD" secondAttribute="bottom" id="3KA-a5-fvl"/>
63+
</constraints>
5864
<simulatedOrientationMetrics key="simulatedOrientationMetrics" orientation="landscapeRight"/>
65+
<variation key="default">
66+
<mask key="constraints">
67+
<exclude reference="3KA-a5-fvl"/>
68+
</mask>
69+
</variation>
70+
<variation key="heightClass=regular-widthClass=compact">
71+
<mask key="constraints">
72+
<include reference="3KA-a5-fvl"/>
73+
</mask>
74+
</variation>
5975
</view>
6076
<navigationItem key="navigationItem" id="f7u-DV-ixa"/>
6177
<connections>
@@ -93,17 +109,43 @@
93109
<rect key="frame" x="20" y="71" width="100" height="100"/>
94110
</variation>
95111
</imageView>
112+
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="0Il-Wa-ILq">
113+
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
114+
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
115+
<variation key="widthClass=compact" fixedFrame="YES">
116+
<rect key="frame" x="20" y="179" width="280" height="281"/>
117+
</variation>
118+
<variation key="heightClass=regular-widthClass=compact" ambiguous="YES" misplaced="YES">
119+
<rect key="frame" x="20" y="179" width="280" height="461"/>
120+
</variation>
121+
</tableView>
96122
</subviews>
97123
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
124+
<constraints>
125+
<constraint firstItem="0Il-Wa-ILq" firstAttribute="top" secondItem="smX-3l-Dxh" secondAttribute="bottom" constant="115" id="aF6-5H-laP"/>
126+
<constraint firstItem="RoX-md-gkS" firstAttribute="top" secondItem="0Il-Wa-ILq" secondAttribute="bottom" id="aQQ-ui-AeM"/>
127+
</constraints>
98128
<simulatedOrientationMetrics key="simulatedOrientationMetrics" orientation="landscapeRight"/>
99129
<variation key="default">
100130
<mask key="subviews">
101131
<exclude reference="vzM-nB-nVu"/>
132+
<exclude reference="0Il-Wa-ILq"/>
133+
</mask>
134+
<mask key="constraints">
135+
<exclude reference="aF6-5H-laP"/>
136+
<exclude reference="aQQ-ui-AeM"/>
102137
</mask>
103138
</variation>
104139
<variation key="widthClass=compact">
105140
<mask key="subviews">
106141
<include reference="vzM-nB-nVu"/>
142+
<include reference="0Il-Wa-ILq"/>
143+
</mask>
144+
</variation>
145+
<variation key="heightClass=regular-widthClass=compact">
146+
<mask key="constraints">
147+
<include reference="aF6-5H-laP"/>
148+
<include reference="aQQ-ui-AeM"/>
107149
</mask>
108150
</variation>
109151
</view>

0 commit comments

Comments
 (0)