Skip to content

Commit 147938d

Browse files
committed
Login button is now perfectly centered at bottom
Yay for empty views
1 parent 1633d11 commit 147938d

1 file changed

Lines changed: 39 additions & 27 deletions

File tree

BrickHack-Mobile/Base.lproj/Main.storyboard

Lines changed: 39 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
<rect key="frame" x="0.0" y="0.0" width="375" height="598"/>
2222
<subviews>
2323
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="brickHack6Logo" translatesAutoresizingMaskIntoConstraints="NO" id="1am-Hz-qrF">
24-
<rect key="frame" x="36" y="159.66666666666663" width="296" height="279"/>
24+
<rect key="frame" x="36" y="229.33333333333337" width="148" height="139.66666666666663"/>
2525
</imageView>
2626
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="loginShapes" translatesAutoresizingMaskIntoConstraints="NO" id="QYc-0X-ayY">
27-
<rect key="frame" x="-47" y="-50" width="422" height="698"/>
27+
<rect key="frame" x="164" y="124.66666666666669" width="211" height="349"/>
2828
</imageView>
2929
</subviews>
3030
<color key="backgroundColor" name="primaryColor"/>
@@ -36,51 +36,63 @@
3636
<constraint firstItem="QYc-0X-ayY" firstAttribute="centerY" secondItem="gwU-Z6-hc2" secondAttribute="centerY" id="sgu-SW-zdl"/>
3737
</constraints>
3838
</view>
39-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tmd-U4-Zfm">
40-
<rect key="frame" x="96" y="654" width="184" height="57"/>
41-
<color key="backgroundColor" name="primaryColor"/>
39+
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="S1M-rC-LFC">
40+
<rect key="frame" x="0.0" y="598" width="375" height="180"/>
41+
<subviews>
42+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Epc-Af-Z7K">
43+
<rect key="frame" x="85" y="61.666666666666629" width="205" height="57"/>
44+
<color key="backgroundColor" name="primaryColor"/>
45+
<constraints>
46+
<constraint firstAttribute="height" constant="57" id="YVO-oA-HJ9"/>
47+
<constraint firstAttribute="width" secondItem="Epc-Af-Z7K" secondAttribute="height" multiplier="205:57" id="sjw-01-1rO"/>
48+
</constraints>
49+
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="20"/>
50+
<state key="normal" title="Login">
51+
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
52+
<color key="titleShadowColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
53+
</state>
54+
<userDefinedRuntimeAttributes>
55+
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
56+
<integer key="value" value="5"/>
57+
</userDefinedRuntimeAttribute>
58+
<userDefinedRuntimeAttribute type="boolean" keyPath="layer.matchToBounds" value="YES"/>
59+
<userDefinedRuntimeAttribute type="boolean" keyPath="titleLabel.adjustsFontSizeToFitWidth" value="YES"/>
60+
</userDefinedRuntimeAttributes>
61+
<connections>
62+
<action selector="initializeOAuth:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Eyv-9S-ZGA"/>
63+
</connections>
64+
</button>
65+
</subviews>
66+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
4267
<constraints>
43-
<constraint firstAttribute="height" constant="57" id="VGD-Yf-HOP"/>
68+
<constraint firstItem="Epc-Af-Z7K" firstAttribute="centerY" secondItem="S1M-rC-LFC" secondAttribute="centerY" id="bfG-W7-rez"/>
69+
<constraint firstItem="Epc-Af-Z7K" firstAttribute="centerX" secondItem="S1M-rC-LFC" secondAttribute="centerX" id="wC2-pA-aDq"/>
4470
</constraints>
45-
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="20"/>
46-
<state key="normal" title="Login">
47-
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
48-
<color key="titleShadowColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
49-
</state>
50-
<userDefinedRuntimeAttributes>
51-
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
52-
<integer key="value" value="5"/>
53-
</userDefinedRuntimeAttribute>
54-
<userDefinedRuntimeAttribute type="boolean" keyPath="layer.matchToBounds" value="YES"/>
55-
<userDefinedRuntimeAttribute type="boolean" keyPath="titleLabel.adjustsFontSizeToFitWidth" value="YES"/>
56-
</userDefinedRuntimeAttributes>
57-
<connections>
58-
<action selector="initializeOAuth:" destination="BYZ-38-t0r" eventType="touchUpInside" id="8oy-dY-rua"/>
59-
</connections>
60-
</button>
71+
</view>
6172
</subviews>
6273
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
6374
<color key="tintColor" name="secondaryColor"/>
6475
<constraints>
76+
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="S1M-rC-LFC" secondAttribute="trailing" id="46J-9a-QUn"/>
6577
<constraint firstItem="6Tk-OE-BBY" firstAttribute="top" secondItem="gwU-Z6-hc2" secondAttribute="top" constant="44" id="8tN-dg-yiy"/>
66-
<constraint firstItem="tmd-U4-Zfm" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="96" id="BRi-f9-Rbr"/>
78+
<constraint firstItem="S1M-rC-LFC" firstAttribute="bottom" secondItem="6Tk-OE-BBY" secondAttribute="bottom" id="B1r-RJ-Vx4"/>
79+
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="S1M-rC-LFC" secondAttribute="trailing" id="Dd3-DK-CG4"/>
6780
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="gwU-Z6-hc2" secondAttribute="trailing" id="Rsb-7j-Hcw"/>
6881
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="gwU-Z6-hc2" secondAttribute="bottom" constant="180" id="Tgv-nx-aJ8"/>
69-
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="tmd-U4-Zfm" secondAttribute="trailing" constant="95" id="VFV-4X-7hj"/>
70-
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="tmd-U4-Zfm" secondAttribute="bottom" constant="67" id="XMh-4b-wKa"/>
7182
<constraint firstItem="gwU-Z6-hc2" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="bCn-Jy-1vt"/>
83+
<constraint firstItem="S1M-rC-LFC" firstAttribute="top" secondItem="gwU-Z6-hc2" secondAttribute="bottom" id="lpR-og-HB4"/>
84+
<constraint firstItem="S1M-rC-LFC" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="zW5-8a-8zp"/>
7285
</constraints>
7386
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
7487
</view>
7588
<nil key="simulatedTopBarMetrics"/>
7689
<connections>
77-
<outlet property="loginButton" destination="tmd-U4-Zfm" id="DNt-fA-7pQ"/>
7890
<segue destination="89y-zz-Veh" kind="show" identifier="authSuccessSegue" id="lgu-c8-ptr"/>
7991
</connections>
8092
</viewController>
8193
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
8294
</objects>
83-
<point key="canvasLocation" x="946.39999999999998" y="131.78410794602701"/>
95+
<point key="canvasLocation" x="946.39999999999998" y="131.52709359605913"/>
8496
</scene>
8597
<!--Events-->
8698
<scene sceneID="Udu-fV-S7q">

0 commit comments

Comments
 (0)