Skip to content

Commit ce56515

Browse files
committed
A few more xib fixups to support Auto Layout
1 parent 3f2b73c commit ce56515

File tree

2 files changed

+89
-59
lines changed

2 files changed

+89
-59
lines changed

GitUpKit/Components/Base.lproj/GICommitListViewController.xib

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
1717
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
1818
<view id="Mge-gB-T5T" userLabel="Main View" customClass="GIView">
19-
<rect key="frame" x="0.0" y="0.0" width="310" height="500"/>
19+
<rect key="frame" x="0.0" y="0.0" width="310" height="494"/>
2020
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2121
<subviews>
2222
<scrollView fixedFrame="YES" borderType="none" autohidesScrollers="YES" horizontalLineScroll="71" horizontalPageScroll="10" verticalLineScroll="71" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" horizontalScrollElasticity="none" translatesAutoresizingMaskIntoConstraints="NO" id="AJL-NY-aX0">
23-
<rect key="frame" x="0.0" y="0.0" width="310" height="500"/>
23+
<rect key="frame" x="0.0" y="0.0" width="310" height="494"/>
2424
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2525
<clipView key="contentView" id="rt3-aj-SED">
26-
<rect key="frame" x="0.0" y="0.0" width="310" height="500"/>
26+
<rect key="frame" x="0.0" y="0.0" width="310" height="494"/>
2727
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2828
<subviews>
2929
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="fullWidth" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="71" usesAutomaticRowHeights="YES" viewBased="YES" floatsGroupRows="NO" id="XD8-on-AQk" customClass="GITableView">
30-
<rect key="frame" x="0.0" y="0.0" width="310" height="500"/>
30+
<rect key="frame" x="0.0" y="0.0" width="310" height="494"/>
3131
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
3232
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
3333
<tableViewGridLines key="gridStyleMask" horizontal="YES"/>
@@ -46,35 +46,35 @@
4646
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES"/>
4747
<prototypeCellViews>
4848
<tableCellView identifier="commit" id="lNu-SG-CeF" customClass="GICommitCellView">
49-
<rect key="frame" x="0.0" y="0.0" width="310" height="71"/>
49+
<rect key="frame" x="0.0" y="0.0" width="310" height="68"/>
5050
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
5151
<subviews>
5252
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="aSE-41-Faa">
53-
<rect key="frame" x="10" y="52" width="46" height="14"/>
53+
<rect key="frame" x="6" y="49" width="46" height="14"/>
5454
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="left" title="&lt;SHA1&gt;" id="vGZ-yd-Q3L">
5555
<font key="font" metaFont="smallSystem"/>
5656
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
5757
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
5858
</textFieldCell>
5959
</textField>
6060
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="l20-Zd-aeU">
61-
<rect key="frame" x="254" y="52" width="46" height="14"/>
61+
<rect key="frame" x="258" y="49" width="46" height="14"/>
6262
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="right" title="&lt;DATE&gt;" id="fnB-nM-Xez">
6363
<font key="font" metaFont="smallSystem"/>
6464
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
6565
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
6666
</textFieldCell>
6767
</textField>
6868
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T2M-SH-2iE">
69-
<rect key="frame" x="10" y="30" width="290" height="14"/>
69+
<rect key="frame" x="6" y="27" width="294" height="14"/>
7070
<textFieldCell key="cell" controlSize="small" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="left" title="&lt;SUMMARY&gt;" id="ldy-6V-89y">
7171
<font key="font" metaFont="smallSystem"/>
7272
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
7373
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
7474
</textFieldCell>
7575
</textField>
7676
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="hoX-uL-0Vn">
77-
<rect key="frame" x="10" y="8" width="290" height="14"/>
77+
<rect key="frame" x="6" y="5" width="298" height="14"/>
7878
<textFieldCell key="cell" controlSize="small" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="left" title="&lt;AUTHOR&gt;" id="Wfd-kf-H2a">
7979
<font key="font" metaFont="smallSystem"/>
8080
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
@@ -83,17 +83,17 @@
8383
</textField>
8484
</subviews>
8585
<constraints>
86-
<constraint firstItem="T2M-SH-2iE" firstAttribute="leading" secondItem="lNu-SG-CeF" secondAttribute="leading" constant="12" id="10f-qw-Mfb"/>
86+
<constraint firstItem="T2M-SH-2iE" firstAttribute="leading" secondItem="lNu-SG-CeF" secondAttribute="leading" constant="8" id="10f-qw-Mfb"/>
8787
<constraint firstItem="l20-Zd-aeU" firstAttribute="top" secondItem="lNu-SG-CeF" secondAttribute="top" constant="5" id="5Go-SF-0T0"/>
8888
<constraint firstItem="aSE-41-Faa" firstAttribute="top" secondItem="lNu-SG-CeF" secondAttribute="top" constant="5" id="9ga-6g-Ncv"/>
89-
<constraint firstAttribute="trailing" secondItem="l20-Zd-aeU" secondAttribute="trailing" constant="12" id="C7j-Cn-1Gf"/>
90-
<constraint firstItem="aSE-41-Faa" firstAttribute="leading" secondItem="lNu-SG-CeF" secondAttribute="leading" constant="12" id="HQs-6v-Rg5"/>
89+
<constraint firstAttribute="trailing" secondItem="l20-Zd-aeU" secondAttribute="trailing" constant="8" id="C7j-Cn-1Gf"/>
90+
<constraint firstItem="aSE-41-Faa" firstAttribute="leading" secondItem="lNu-SG-CeF" secondAttribute="leading" constant="8" id="HQs-6v-Rg5"/>
9191
<constraint firstItem="hoX-uL-0Vn" firstAttribute="top" secondItem="T2M-SH-2iE" secondAttribute="bottom" constant="8" symbolic="YES" id="LJK-Nv-jLt"/>
92-
<constraint firstAttribute="bottom" secondItem="hoX-uL-0Vn" secondAttribute="bottom" constant="8" id="MaV-NG-AQx"/>
93-
<constraint firstItem="hoX-uL-0Vn" firstAttribute="leading" secondItem="lNu-SG-CeF" secondAttribute="leading" constant="12" id="TWf-ca-2SD"/>
92+
<constraint firstAttribute="bottom" secondItem="hoX-uL-0Vn" secondAttribute="bottom" constant="5" id="MaV-NG-AQx"/>
93+
<constraint firstItem="hoX-uL-0Vn" firstAttribute="leading" secondItem="lNu-SG-CeF" secondAttribute="leading" constant="8" id="TWf-ca-2SD"/>
9494
<constraint firstItem="l20-Zd-aeU" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="aSE-41-Faa" secondAttribute="trailing" constant="8" symbolic="YES" id="Y3e-UU-YjO"/>
9595
<constraint firstItem="T2M-SH-2iE" firstAttribute="top" secondItem="aSE-41-Faa" secondAttribute="bottom" constant="8" symbolic="YES" id="f1y-jt-c0b"/>
96-
<constraint firstAttribute="trailing" secondItem="hoX-uL-0Vn" secondAttribute="trailing" constant="12" id="tde-gs-0be"/>
96+
<constraint firstAttribute="trailing" secondItem="hoX-uL-0Vn" secondAttribute="trailing" constant="8" id="tde-gs-0be"/>
9797
<constraint firstAttribute="trailing" secondItem="T2M-SH-2iE" secondAttribute="trailing" constant="12" id="uPQ-wI-ICY"/>
9898
</constraints>
9999
<connections>
@@ -104,19 +104,19 @@
104104
</connections>
105105
</tableCellView>
106106
<tableCellView identifier="reference" id="pva-Jf-kwZ" customClass="GIReferenceCellView">
107-
<rect key="frame" x="0.0" y="71" width="310" height="49"/>
107+
<rect key="frame" x="0.0" y="68" width="310" height="46"/>
108108
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
109109
<subviews>
110110
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="n3I-nl-DwW">
111-
<rect key="frame" x="10" y="30" width="290" height="14"/>
111+
<rect key="frame" x="6" y="27" width="298" height="14"/>
112112
<textFieldCell key="cell" controlSize="small" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="left" title="&lt;TYPE&gt;" id="opM-4b-OCF">
113113
<font key="font" metaFont="smallSystem"/>
114114
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
115115
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
116116
</textFieldCell>
117117
</textField>
118118
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="mTb-0f-1hd">
119-
<rect key="frame" x="10" y="8" width="290" height="14"/>
119+
<rect key="frame" x="6" y="5" width="298" height="14"/>
120120
<textFieldCell key="cell" controlSize="small" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="left" title="&lt;NAME&gt;" id="HEY-qh-9fe">
121121
<font key="font" metaFont="smallSystem"/>
122122
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -126,12 +126,12 @@
126126
</subviews>
127127
<constraints>
128128
<constraint firstItem="n3I-nl-DwW" firstAttribute="top" secondItem="pva-Jf-kwZ" secondAttribute="top" constant="5" id="4AK-gI-8AQ"/>
129-
<constraint firstItem="mTb-0f-1hd" firstAttribute="leading" secondItem="pva-Jf-kwZ" secondAttribute="leading" constant="12" id="6jS-25-lO5"/>
130-
<constraint firstItem="n3I-nl-DwW" firstAttribute="leading" secondItem="pva-Jf-kwZ" secondAttribute="leading" constant="12" id="HqE-Pa-zjK"/>
131-
<constraint firstAttribute="trailing" secondItem="mTb-0f-1hd" secondAttribute="trailing" constant="12" id="aYK-HF-4up"/>
132-
<constraint firstAttribute="bottom" secondItem="mTb-0f-1hd" secondAttribute="bottom" constant="8" id="pvg-H4-AOG"/>
129+
<constraint firstItem="mTb-0f-1hd" firstAttribute="leading" secondItem="pva-Jf-kwZ" secondAttribute="leading" constant="8" id="6jS-25-lO5"/>
130+
<constraint firstItem="n3I-nl-DwW" firstAttribute="leading" secondItem="pva-Jf-kwZ" secondAttribute="leading" constant="8" id="HqE-Pa-zjK"/>
131+
<constraint firstAttribute="trailing" secondItem="mTb-0f-1hd" secondAttribute="trailing" constant="8" id="aYK-HF-4up"/>
132+
<constraint firstAttribute="bottom" secondItem="mTb-0f-1hd" secondAttribute="bottom" constant="5" id="pvg-H4-AOG"/>
133133
<constraint firstItem="mTb-0f-1hd" firstAttribute="top" secondItem="n3I-nl-DwW" secondAttribute="bottom" constant="8" symbolic="YES" id="tH7-My-KIo"/>
134-
<constraint firstAttribute="trailing" secondItem="n3I-nl-DwW" secondAttribute="trailing" constant="12" id="ytT-MN-YXM"/>
134+
<constraint firstAttribute="trailing" secondItem="n3I-nl-DwW" secondAttribute="trailing" constant="8" id="ytT-MN-YXM"/>
135135
</constraints>
136136
<connections>
137137
<outlet property="nameTextField" destination="mTb-0f-1hd" id="cUR-ox-PBt"/>
@@ -159,7 +159,7 @@
159159
</scroller>
160160
</scrollView>
161161
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="2ZB-wM-XaF">
162-
<rect key="frame" x="119" y="242" width="73" height="17"/>
162+
<rect key="frame" x="119" y="239" width="73" height="17"/>
163163
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="center" title="&lt;EMPTY&gt;" id="t3C-dG-D6U">
164164
<font key="font" metaFont="system" size="14"/>
165165
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>

0 commit comments

Comments
 (0)