Skip to content

Commit

Permalink
[FIX] safe area layout in .xib file on ios < 11
Browse files Browse the repository at this point in the history
  • Loading branch information
c-nguyen committed Apr 11, 2018
1 parent 73c245d commit 591ebae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="mWw-fw-Ht8" firstAttribute="top" relation="greaterThanOrEqual" secondItem="iN0-l3-epB" secondAttribute="top" constant="20" id="1Qg-mI-nX9"/>
<constraint firstItem="mWw-fw-Ht8" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="6Qg-Gl-Xo9"/>
<constraint firstItem="OL2-Hq-SBY" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="ARE-Kl-BfU"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="OL2-Hq-SBY" secondAttribute="bottom" id="Ccb-QS-uqt"/>
<constraint firstAttribute="trailing" secondItem="mWw-fw-Ht8" secondAttribute="trailing" id="JgV-kU-gwf"/>
<constraint firstItem="mWw-fw-Ht8" firstAttribute="top" secondItem="vUN-kp-3ea" secondAttribute="top" id="fOe-wW-PAy"/>
<constraint firstItem="mWw-fw-Ht8" firstAttribute="top" secondItem="vUN-kp-3ea" secondAttribute="top" priority="750" id="fOe-wW-PAy"/>
<constraint firstAttribute="trailing" secondItem="OL2-Hq-SBY" secondAttribute="trailing" id="fVa-DC-zEu"/>
<constraint firstItem="OL2-Hq-SBY" firstAttribute="top" secondItem="mWw-fw-Ht8" secondAttribute="bottom" id="xVZ-GD-yuz"/>
</constraints>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,9 @@
<constraint firstAttribute="trailing" secondItem="zK2-M3-1gG" secondAttribute="trailing" id="YwZ-z4-Naz"/>
<constraint firstItem="qBv-7F-gKy" firstAttribute="bottom" secondItem="bEq-YZ-DLz" secondAttribute="top" id="aVt-Lx-N8O"/>
<constraint firstItem="zK2-M3-1gG" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="dZS-rR-cba"/>
<constraint firstItem="zK2-M3-1gG" firstAttribute="top" relation="greaterThanOrEqual" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="20" id="j0E-0C-mm8"/>
<constraint firstItem="qBv-7F-gKy" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="jbg-YS-7Rk"/>
<constraint firstItem="zK2-M3-1gG" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="nrk-UD-TWk"/>
<constraint firstItem="zK2-M3-1gG" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" priority="750" id="nrk-UD-TWk"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="qBv-7F-gKy" secondAttribute="trailing" id="xDa-nB-TmJ"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,12 @@
<constraints>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="hwJ-iD-bAE" secondAttribute="trailing" id="0FM-pd-a72"/>
<constraint firstItem="hwJ-iD-bAE" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="5Vo-oK-3jP"/>
<constraint firstItem="hwJ-iD-bAE" firstAttribute="top" relation="greaterThanOrEqual" secondItem="iN0-l3-epB" secondAttribute="top" constant="20" id="AC2-ao-d1W"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="o05-8f-eoM" secondAttribute="trailing" constant="8" id="E4e-SJ-ghN"/>
<constraint firstItem="o05-8f-eoM" firstAttribute="top" secondItem="hwJ-iD-bAE" secondAttribute="bottom" constant="16" id="Qo7-78-xKg"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="SuV-mC-eAF" secondAttribute="trailing" id="ZQ0-MZ-8AS"/>
<constraint firstItem="SuV-mC-eAF" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="eh1-XM-eyH"/>
<constraint firstItem="hwJ-iD-bAE" firstAttribute="top" secondItem="vUN-kp-3ea" secondAttribute="top" id="iGA-ej-V1N"/>
<constraint firstItem="hwJ-iD-bAE" firstAttribute="top" secondItem="vUN-kp-3ea" secondAttribute="top" priority="750" id="iGA-ej-V1N"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="SuV-mC-eAF" secondAttribute="top" id="qJO-Ja-4yG"/>
</constraints>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
Expand Down

0 comments on commit 591ebae

Please sign in to comment.