Skip to content

Commit 9bf52d4

Browse files
committed
Update UI to support Safe Area
1 parent 9112aa2 commit 9bf52d4

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

Classes/GLIndexedCollectionViewCell.xib

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
77
<deployment identifier="iOS"/>
88
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
9+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
910
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1011
</dependencies>
1112
<objects>
@@ -18,6 +19,7 @@
1819
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
1920
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
2021
</view>
22+
<viewLayoutGuide key="safeArea" id="hSX-Mj-jLC"/>
2123
</collectionViewCell>
2224
</objects>
2325
</document>

GLTableCollectionView/Base.lproj/LaunchScreen.storyboard

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="Ik1-Jh-kcr">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Ik1-Jh-kcr">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
77
<deployment identifier="iOS"/>
88
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
9+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
910
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1011
</dependencies>
1112
<scenes>
1213
<!--View Controller-->
1314
<scene sceneID="EHf-IW-A2E">
1415
<objects>
1516
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
16-
<layoutGuides>
17-
<viewControllerLayoutGuide type="top" id="y5f-fB-UvE"/>
18-
<viewControllerLayoutGuide type="bottom" id="rPH-2e-FWV"/>
19-
</layoutGuides>
2017
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
2118
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
2219
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2320
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
21+
<viewLayoutGuide key="safeArea" id="tHx-NU-s7G"/>
2422
</view>
2523
<navigationItem key="navigationItem" id="Egc-yq-19H"/>
2624
</viewController>
@@ -35,6 +33,7 @@
3533
<navigationBar key="navigationBar" contentMode="scaleToFill" id="wWJ-S6-skK">
3634
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
3735
<autoresizingMask key="autoresizingMask"/>
36+
<viewLayoutGuide key="safeArea" id="bRy-ch-hHd"/>
3837
</navigationBar>
3938
<connections>
4039
<segue destination="01J-lp-oVM" kind="relationship" relationship="rootViewController" id="0nM-Sh-5lD"/>

GLTableCollectionView/Base.lproj/Main.storyboard

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@
66
<dependencies>
77
<deployment identifier="iOS"/>
88
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
9+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
910
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1011
</dependencies>
1112
<scenes>
1213
<!--Table Collection View Controller-->
1314
<scene sceneID="MYD-pX-siV">
1415
<objects>
1516
<tableViewController storyboardIdentifier="tableCollectionView" useStoryboardIdentifierAsRestorationIdentifier="YES" id="lzn-74-EiO" customClass="GLTableCollectionViewController" customModule="GLTableCollectionView" customModuleProvider="target" sceneMemberID="viewController">
16-
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="88" sectionHeaderHeight="28" sectionFooterHeight="1" id="l3B-sn-hQc">
17+
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" directionalLockEnabled="YES" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="88" sectionHeaderHeight="28" sectionFooterHeight="1" id="l3B-sn-hQc">
1718
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
1819
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1920
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
21+
<viewLayoutGuide key="safeArea" id="9zB-mk-AEp"/>
2022
<sections/>
2123
<connections>
2224
<outlet property="dataSource" destination="lzn-74-EiO" id="560-Iz-sbo"/>
@@ -36,6 +38,7 @@
3638
<navigationBar key="navigationBar" contentMode="scaleToFill" id="fmK-uj-jX1">
3739
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
3840
<autoresizingMask key="autoresizingMask"/>
41+
<viewLayoutGuide key="safeArea" id="d4y-hh-Xxj"/>
3942
</navigationBar>
4043
<connections>
4144
<segue destination="lzn-74-EiO" kind="relationship" relationship="rootViewController" id="7rc-7g-dv9"/>

0 commit comments

Comments
 (0)