Skip to content

Commit f5308c9

Browse files
committed
Update Example
App Icon background, nice Tab Bar Icons, Improved Custom View example
1 parent c6bf928 commit f5308c9

16 files changed

Lines changed: 121 additions & 85 deletions

File tree

-2.26 KB
Loading
-900 Bytes
Loading
-916 Bytes
Loading
-12.8 KB
Loading
-1.29 KB
Loading

Example/ReusableDemo iOS/Base.lproj/Main.storyboard

Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="7fF-Ae-xTS">
3-
<device id="retina4_7" orientation="portrait">
4-
<adaptation id="fullscreen"/>
5-
</device>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="7fF-Ae-xTS">
3+
<device id="retina4_7" orientation="portrait" appearance="light"/>
64
<dependencies>
75
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
97
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
108
</dependencies>
119
<scenes>
@@ -19,10 +17,10 @@
1917
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2018
<prototypes>
2119
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MyStoryBoardIndexPathCell" id="Tw8-mE-1pZ" customClass="MyStoryBoardIndexPathCell" customModule="ReusableDemo_iOS" customModuleProvider="target">
22-
<rect key="frame" x="0.0" y="28" width="375" height="80"/>
20+
<rect key="frame" x="0.0" y="24.5" width="375" height="80"/>
2321
<autoresizingMask key="autoresizingMask"/>
2422
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Tw8-mE-1pZ" id="06x-cI-AjP">
25-
<rect key="frame" x="0.0" y="0.0" width="375" height="79.5"/>
23+
<rect key="frame" x="0.0" y="0.0" width="375" height="80"/>
2624
<autoresizingMask key="autoresizingMask"/>
2725
<subviews>
2826
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Section" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xRp-NR-1CZ">
@@ -94,7 +92,7 @@
9492
</connections>
9593
</tableView>
9694
<extendedEdge key="edgesForExtendedLayout" top="YES"/>
97-
<tabBarItem key="tabBarItem" title="TableView" id="C3o-Lt-Bjj"/>
95+
<tabBarItem key="tabBarItem" title="TableView" image="list.dash" catalog="system" id="C3o-Lt-Bjj"/>
9896
</tableViewController>
9997
<placeholder placeholderIdentifier="IBFirstResponder" id="XEN-tN-mKX" userLabel="First Responder" sceneMemberID="firstResponder"/>
10098
</objects>
@@ -132,7 +130,7 @@
132130
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
133131
<subviews>
134132
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fnw-gc-OgB" customClass="MyCustomWidget" customModule="ReusableDemo_iOS" customModuleProvider="target">
135-
<rect key="frame" x="197.5" y="40" width="157.5" height="269"/>
133+
<rect key="frame" x="197.5" y="20" width="157.5" height="279"/>
136134
<color key="backgroundColor" red="0.84867460279999996" green="0.97256087079999998" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
137135
<userDefinedRuntimeAttributes>
138136
<userDefinedRuntimeAttribute type="string" keyPath="text" value="Top Right"/>
@@ -142,7 +140,7 @@
142140
</userDefinedRuntimeAttributes>
143141
</view>
144142
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="R7m-0U-p9d" customClass="MyCustomWidget" customModule="ReusableDemo_iOS" customModuleProvider="target">
145-
<rect key="frame" x="20" y="40" width="157.5" height="269"/>
143+
<rect key="frame" x="20" y="20" width="157.5" height="279"/>
146144
<color key="backgroundColor" red="0.84867460279999996" green="0.97256087079999998" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
147145
<userDefinedRuntimeAttributes>
148146
<userDefinedRuntimeAttribute type="string" keyPath="text" value="Top Left"/>
@@ -151,21 +149,11 @@
151149
</userDefinedRuntimeAttribute>
152150
</userDefinedRuntimeAttributes>
153151
</view>
154-
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cKT-T1-jUw" customClass="MyCustomWidget" customModule="ReusableDemo_iOS" customModuleProvider="target">
155-
<rect key="frame" x="197.5" y="329" width="157.5" height="269"/>
156-
<color key="backgroundColor" red="0.84867460279999996" green="0.97256087079999998" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
157-
<userDefinedRuntimeAttributes>
158-
<userDefinedRuntimeAttribute type="string" keyPath="text" value="Bottom Right"/>
159-
<userDefinedRuntimeAttribute type="color" keyPath="rectColor">
160-
<color key="value" red="0.19395312109999999" green="0.27580727269999999" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
161-
</userDefinedRuntimeAttribute>
162-
</userDefinedRuntimeAttributes>
163-
</view>
164152
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="EXD-BO-hZ6" customClass="MyCustomWidget" customModule="ReusableDemo_iOS" customModuleProvider="target">
165-
<rect key="frame" x="20" y="329" width="157.5" height="269"/>
153+
<rect key="frame" x="20" y="319" width="335" height="279"/>
166154
<color key="backgroundColor" red="0.84867460279999996" green="0.97256087079999998" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
167155
<userDefinedRuntimeAttributes>
168-
<userDefinedRuntimeAttribute type="string" keyPath="text" value="Bottom Left"/>
156+
<userDefinedRuntimeAttribute type="string" keyPath="text" value="Bottom"/>
169157
<userDefinedRuntimeAttribute type="color" keyPath="rectColor">
170158
<color key="value" red="1" green="1" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
171159
</userDefinedRuntimeAttribute>
@@ -174,29 +162,25 @@
174162
</subviews>
175163
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
176164
<constraints>
177-
<constraint firstItem="fnw-gc-OgB" firstAttribute="height" secondItem="cKT-T1-jUw" secondAttribute="height" id="1Si-8K-2Jx"/>
178165
<constraint firstItem="EXD-BO-hZ6" firstAttribute="leading" secondItem="6Ku-UX-Jef" secondAttribute="leading" constant="20" id="9aP-3q-qmp"/>
179166
<constraint firstItem="R7m-0U-p9d" firstAttribute="top" secondItem="eP0-7L-O6F" secondAttribute="bottom" constant="20" id="Eqx-vi-doU"/>
180167
<constraint firstAttribute="trailing" secondItem="fnw-gc-OgB" secondAttribute="trailing" constant="20" id="Ihj-b2-GaD"/>
181-
<constraint firstItem="dRd-uT-ZnN" firstAttribute="top" secondItem="cKT-T1-jUw" secondAttribute="bottom" constant="20" id="Swj-5b-ttT"/>
182-
<constraint firstItem="fnw-gc-OgB" firstAttribute="width" secondItem="cKT-T1-jUw" secondAttribute="width" id="TCz-8L-Xjt"/>
183-
<constraint firstItem="cKT-T1-jUw" firstAttribute="height" secondItem="EXD-BO-hZ6" secondAttribute="height" id="ULS-no-WhF"/>
184-
<constraint firstAttribute="trailing" secondItem="cKT-T1-jUw" secondAttribute="trailing" constant="20" id="Wwb-K4-bIb"/>
168+
<constraint firstItem="fnw-gc-OgB" firstAttribute="top" secondItem="eP0-7L-O6F" secondAttribute="bottom" constant="20" id="YBS-It-he6"/>
185169
<constraint firstItem="R7m-0U-p9d" firstAttribute="leading" secondItem="6Ku-UX-Jef" secondAttribute="leading" constant="20" id="aYp-Rh-QAQ"/>
186-
<constraint firstItem="cKT-T1-jUw" firstAttribute="top" secondItem="fnw-gc-OgB" secondAttribute="bottom" constant="20" id="ghV-1A-8Rc"/>
187-
<constraint firstItem="R7m-0U-p9d" firstAttribute="width" secondItem="EXD-BO-hZ6" secondAttribute="width" id="hBc-qC-obq"/>
188-
<constraint firstItem="fnw-gc-OgB" firstAttribute="height" secondItem="R7m-0U-p9d" secondAttribute="height" id="k4x-nu-acW"/>
170+
<constraint firstItem="EXD-BO-hZ6" firstAttribute="top" secondItem="fnw-gc-OgB" secondAttribute="bottom" constant="20" id="dyJ-9U-SHR"/>
171+
<constraint firstAttribute="trailing" secondItem="EXD-BO-hZ6" secondAttribute="trailing" constant="20" symbolic="YES" id="mNP-bE-bQP"/>
172+
<constraint firstItem="EXD-BO-hZ6" firstAttribute="top" secondItem="R7m-0U-p9d" secondAttribute="bottom" constant="20" id="mX9-VC-TRb"/>
189173
<constraint firstItem="fnw-gc-OgB" firstAttribute="leading" secondItem="R7m-0U-p9d" secondAttribute="trailing" constant="20" id="q5Z-6V-pTx"/>
190174
<constraint firstItem="R7m-0U-p9d" firstAttribute="width" secondItem="fnw-gc-OgB" secondAttribute="width" id="tfx-qO-IHP"/>
191-
<constraint firstItem="EXD-BO-hZ6" firstAttribute="top" secondItem="R7m-0U-p9d" secondAttribute="bottom" constant="20" id="wVO-JO-4VT"/>
175+
<constraint firstItem="EXD-BO-hZ6" firstAttribute="height" secondItem="R7m-0U-p9d" secondAttribute="height" id="vfN-XQ-Wt2"/>
192176
<constraint firstItem="dRd-uT-ZnN" firstAttribute="top" secondItem="EXD-BO-hZ6" secondAttribute="bottom" constant="20" id="z3v-xW-ftc"/>
193177
</constraints>
194178
</view>
195-
<tabBarItem key="tabBarItem" title="Custom View" id="YFV-D2-URw"/>
179+
<tabBarItem key="tabBarItem" title="Custom View" image="square.and.pencil" catalog="system" id="YFV-D2-URw"/>
196180
</viewController>
197181
<placeholder placeholderIdentifier="IBFirstResponder" id="Krl-eK-k3j" userLabel="First Responder" sceneMemberID="firstResponder"/>
198182
</objects>
199-
<point key="canvasLocation" x="83" y="1272"/>
183+
<point key="canvasLocation" x="82.400000000000006" y="1271.5142428785607"/>
200184
</scene>
201185
<!--CollectionView-->
202186
<scene sceneID="19r-RC-Ju4">
@@ -243,11 +227,16 @@
243227
<outlet property="delegate" destination="Oo7-g3-hUO" id="fZ2-AG-ebA"/>
244228
</connections>
245229
</collectionView>
246-
<tabBarItem key="tabBarItem" title="CollectionView" id="xhW-ku-31U"/>
230+
<tabBarItem key="tabBarItem" title="CollectionView" image="square.grid.3x2" catalog="system" id="xhW-ku-31U"/>
247231
</collectionViewController>
248232
<placeholder placeholderIdentifier="IBFirstResponder" id="AEd-rY-W78" userLabel="First Responder" sceneMemberID="firstResponder"/>
249233
</objects>
250234
<point key="canvasLocation" x="903" y="840"/>
251235
</scene>
252236
</scenes>
237+
<resources>
238+
<image name="list.dash" catalog="system" width="128" height="85"/>
239+
<image name="square.and.pencil" catalog="system" width="128" height="115"/>
240+
<image name="square.grid.3x2" catalog="system" width="128" height="80"/>
241+
</resources>
253242
</document>

0 commit comments

Comments
 (0)