- Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathMain.storyboard
220 lines (220 loc) · 22.4 KB
/
Main.storyboard
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?xml version="1.0" encoding="UTF-8"?>
<documenttype="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"version="3.0"toolsVersion="15400"targetRuntime="iOS.CocoaTouch"propertyAccessControl="none"useAutolayout="YES"useTraitCollections="YES"colorMatched="YES"initialViewController="Tjv-AT-FJM">
<deviceid="retina4_7"orientation="portrait"appearance="light"/>
<dependencies>
<deploymentidentifier="iOS"/>
<plugInidentifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin"version="15404"/>
<capabilityname="documents saved in the Xcode 8 format"minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Navigation Controller-->
<scenesceneID="2p8-Fw-pMr">
<objects>
<navigationControllerid="Tjv-AT-FJM"sceneMemberID="viewController">
<navigationBarkey="navigationBar"contentMode="scaleToFill"id="o3e-Ch-GOB">
<rectkey="frame"x="0.0"y="0.0"width="375"height="44"/>
<autoresizingMaskkey="autoresizingMask"/>
<colorkey="barTintColor"red="0.01176470588"green="0.60784313729999995"blue="0.8980392157"alpha="1"colorSpace="custom"customColorSpace="sRGB"/>
<textAttributeskey="titleTextAttributes">
<colorkey="textColor"red="1"green="1"blue="1"alpha="1"colorSpace="custom"customColorSpace="sRGB"/>
</textAttributes>
</navigationBar>
<connections>
<seguedestination="N42-xk-ULx"kind="relationship"relationship="rootViewController"id="Mbp-lQ-nMH"/>
</connections>
</navigationController>
<placeholderplaceholderIdentifier="IBFirstResponder"id="yGI-yy-bTd"userLabel="First Responder"sceneMemberID="firstResponder"/>
</objects>
<pointkey="canvasLocation"x="476"y="-1541"/>
</scene>
<!--Main View Controller-->
<scenesceneID="aF9-42-xn7">
<objects>
<collectionViewControllerid="N42-xk-ULx"customClass="MainViewController"sceneMemberID="viewController">
<collectionViewkey="view"clipsSubviews="YES"multipleTouchEnabled="YES"contentMode="scaleToFill"dataMode="prototypes"id="dGk-f3-io8">
<rectkey="frame"x="0.0"y="0.0"width="375"height="667"/>
<autoresizingMaskkey="autoresizingMask"widthSizable="YES"heightSizable="YES"/>
<colorkey="backgroundColor"white="1"alpha="1"colorSpace="calibratedWhite"/>
<collectionViewFlowLayoutkey="collectionViewLayout"minimumLineSpacing="10"minimumInteritemSpacing="10"id="nhC-Fh-pBJ">
<sizekey="itemSize"width="149"height="129"/>
<sizekey="headerReferenceSize"width="0.0"height="0.0"/>
<sizekey="footerReferenceSize"width="0.0"height="0.0"/>
<insetkey="sectionInset"minX="0.0"minY="0.0"maxX="0.0"maxY="0.0"/>
</collectionViewFlowLayout>
<cells>
<collectionViewCellopaque="NO"clipsSubviews="YES"contentMode="center"reuseIdentifier="add"id="R5i-XJ-Nps"customClass="CloudAddCell">
<rectkey="frame"x="37"y="0.0"width="301"height="132"/>
<autoresizingMaskkey="autoresizingMask"flexibleMaxX="YES"flexibleMaxY="YES"/>
<viewkey="contentView"opaque="NO"clipsSubviews="YES"multipleTouchEnabled="YES"contentMode="center">
<rectkey="frame"x="0.0"y="0.0"width="301"height="132"/>
<autoresizingMaskkey="autoresizingMask"/>
<subviews>
<labelopaque="NO"userInteractionEnabled="NO"contentMode="left"horizontalHuggingPriority="251"verticalHuggingPriority="251"text="Add two numbers"textAlignment="natural"lineBreakMode="tailTruncation"baselineAdjustment="alignBaselines"adjustsFontSizeToFit="NO"translatesAutoresizingMaskIntoConstraints="NO"id="mTV-70-RgN">
<rectkey="frame"x="16"y="16"width="114"height="17"/>
<accessibilitykey="accessibilityConfiguration">
<accessibilityTraitskey="traits"staticText="YES"notEnabled="YES"/>
</accessibility>
<fontDescriptionkey="fontDescription"type="system"pointSize="14"/>
<nilkey="textColor"/>
<nilkey="highlightedColor"/>
</label>
<textFieldopaque="NO"contentMode="scaleToFill"contentHorizontalAlignment="left"contentVerticalAlignment="center"borderStyle="roundedRect"placeholder="Num 1"textAlignment="natural"minimumFontSize="17"translatesAutoresizingMaskIntoConstraints="NO"id="VqS-i9-5oU"customClass="MDCTextField">
<rectkey="frame"x="16"y="49"width="60"height="34"/>
<constraints>
<constraintfirstAttribute="width"constant="60"id="67m-WK-NpW"/>
</constraints>
<fontDescriptionkey="fontDescription"type="system"pointSize="14"/>
<textInputTraitskey="textInputTraits"/>
</textField>
<labelopaque="NO"userInteractionEnabled="NO"contentMode="left"horizontalHuggingPriority="251"verticalHuggingPriority="251"text="+"textAlignment="natural"lineBreakMode="tailTruncation"baselineAdjustment="alignBaselines"adjustsFontSizeToFit="NO"translatesAutoresizingMaskIntoConstraints="NO"id="IXg-aV-mBK">
<rectkey="frame"x="88"y="56"width="11"height="20.5"/>
<fontDescriptionkey="fontDescription"type="system"pointSize="17"/>
<nilkey="textColor"/>
<nilkey="highlightedColor"/>
</label>
<textFieldopaque="NO"contentMode="scaleToFill"contentHorizontalAlignment="left"contentVerticalAlignment="center"borderStyle="roundedRect"placeholder="Num 2"textAlignment="natural"minimumFontSize="17"translatesAutoresizingMaskIntoConstraints="NO"id="Uny-hg-53e"customClass="MDCTextField">
<rectkey="frame"x="111"y="49"width="60"height="34"/>
<constraints>
<constraintfirstAttribute="width"constant="60"id="gey-Bd-n3T"/>
</constraints>
<fontDescriptionkey="fontDescription"type="system"pointSize="14"/>
<textInputTraitskey="textInputTraits"/>
</textField>
<textFieldopaque="NO"contentMode="scaleToFill"enabled="NO"contentHorizontalAlignment="left"contentVerticalAlignment="center"borderStyle="roundedRect"textAlignment="natural"minimumFontSize="17"translatesAutoresizingMaskIntoConstraints="NO"id="Ccd-hP-5Ck">
<rectkey="frame"x="206"y="49"width="68"height="34"/>
<accessibilitykey="accessibilityConfiguration">
<accessibilityTraitskey="traits"staticText="YES"notEnabled="YES"/>
</accessibility>
<constraints>
<constraintfirstAttribute="width"constant="68"id="0pZ-VL-fRB"/>
</constraints>
<fontDescriptionkey="fontDescription"type="system"pointSize="14"/>
<textInputTraitskey="textInputTraits"/>
</textField>
<buttonopaque="NO"contentMode="scaleToFill"contentHorizontalAlignment="center"contentVerticalAlignment="center"lineBreakMode="middleTruncation"translatesAutoresizingMaskIntoConstraints="NO"id="dmi-uv-gmK"customClass="MDCButton">
<rectkey="frame"x="174"y="99"width="100"height="24"/>
<colorkey="backgroundColor"red="0.01176470588"green="0.60784313729999995"blue="0.8980392157"alpha="1"colorSpace="custom"customColorSpace="sRGB"/>
<constraints>
<constraintfirstAttribute="width"constant="100"id="e8v-7W-lDC"/>
<constraintfirstAttribute="height"constant="24"id="k4q-rB-Rbb"/>
</constraints>
<fontDescriptionkey="fontDescription"type="system"pointSize="14"/>
<statekey="normal"title="Calculate">
<colorkey="titleColor"red="1"green="1"blue="1"alpha="1"colorSpace="custom"customColorSpace="sRGB"/>
</state>
<connections>
<actionselector="didTapAdd:"destination="R5i-XJ-Nps"eventType="touchUpInside"id="dtA-e2-sMA"/>
</connections>
</button>
<labelopaque="NO"userInteractionEnabled="NO"contentMode="left"horizontalHuggingPriority="251"verticalHuggingPriority="251"text="="textAlignment="natural"lineBreakMode="tailTruncation"baselineAdjustment="alignBaselines"adjustsFontSizeToFit="NO"translatesAutoresizingMaskIntoConstraints="NO"id="ay8-wT-d2q">
<rectkey="frame"x="183"y="56"width="11"height="20.5"/>
<fontDescriptionkey="fontDescription"type="system"pointSize="17"/>
<nilkey="textColor"/>
<nilkey="highlightedColor"/>
</label>
</subviews>
</view>
<constraints>
<constraintfirstItem="ay8-wT-d2q"firstAttribute="leading"secondItem="Uny-hg-53e"secondAttribute="trailing"constant="12"id="7ln-SD-VaF"/>
<constraintfirstItem="dmi-uv-gmK"firstAttribute="trailing"secondItem="Ccd-hP-5Ck"secondAttribute="trailing"id="AkH-1d-LXy"/>
<constraintfirstItem="ay8-wT-d2q"firstAttribute="centerY"secondItem="Ccd-hP-5Ck"secondAttribute="centerY"id="Ar0-mS-18g"/>
<constraintfirstItem="dmi-uv-gmK"firstAttribute="top"secondItem="Ccd-hP-5Ck"secondAttribute="bottom"constant="16"id="Fri-jw-TQf"/>
<constraintfirstItem="VqS-i9-5oU"firstAttribute="leading"secondItem="mTV-70-RgN"secondAttribute="leading"id="HUN-Ql-0rz"/>
<constraintfirstItem="mTV-70-RgN"firstAttribute="leading"secondItem="R5i-XJ-Nps"secondAttribute="leading"constant="16"id="III-Ng-XHw"/>
<constraintfirstItem="VqS-i9-5oU"firstAttribute="top"secondItem="mTV-70-RgN"secondAttribute="bottom"constant="16"id="IpD-s2-sL2"/>
<constraintfirstItem="Uny-hg-53e"firstAttribute="leading"secondItem="IXg-aV-mBK"secondAttribute="trailing"constant="12"id="eso-4v-diS"/>
<constraintfirstItem="Ccd-hP-5Ck"firstAttribute="leading"secondItem="ay8-wT-d2q"secondAttribute="trailing"constant="12"id="f1m-Mt-979"/>
<constraintfirstItem="mTV-70-RgN"firstAttribute="top"secondItem="R5i-XJ-Nps"secondAttribute="top"constant="16"id="hp1-Vx-rlq"/>
<constraintfirstItem="Uny-hg-53e"firstAttribute="centerY"secondItem="VqS-i9-5oU"secondAttribute="centerY"id="lRU-GL-Isg"/>
<constraintfirstItem="Ccd-hP-5Ck"firstAttribute="centerY"secondItem="Uny-hg-53e"secondAttribute="centerY"id="pkV-r0-ssL"/>
<constraintfirstItem="IXg-aV-mBK"firstAttribute="centerY"secondItem="VqS-i9-5oU"secondAttribute="centerY"id="tm5-k7-QJl"/>
<constraintfirstItem="IXg-aV-mBK"firstAttribute="leading"secondItem="VqS-i9-5oU"secondAttribute="trailing"constant="12"id="uhF-Hp-IrN"/>
</constraints>
<sizekey="customSize"width="301"height="132"/>
<connections>
<outletproperty="button"destination="dmi-uv-gmK"id="7OA-oE-NEq"/>
<outletproperty="number1Field"destination="VqS-i9-5oU"id="wYx-BN-eWk"/>
<outletproperty="number2Field"destination="Uny-hg-53e"id="20f-5D-lHD"/>
<outletproperty="resultField"destination="Ccd-hP-5Ck"id="O64-SA-sGa"/>
</connections>
</collectionViewCell>
<collectionViewCellopaque="NO"clipsSubviews="YES"multipleTouchEnabled="YES"contentMode="center"reuseIdentifier="message"id="rNY-uP-HrF"customClass="CommentCell">
<rectkey="frame"x="47"y="142"width="281"height="165"/>
<autoresizingMaskkey="autoresizingMask"flexibleMaxX="YES"flexibleMaxY="YES"/>
<viewkey="contentView"opaque="NO"clipsSubviews="YES"multipleTouchEnabled="YES"contentMode="center"insetsLayoutMarginsFromSafeArea="NO">
<rectkey="frame"x="0.0"y="0.0"width="281"height="165"/>
<autoresizingMaskkey="autoresizingMask"/>
<subviews>
<labelopaque="NO"userInteractionEnabled="NO"contentMode="left"horizontalHuggingPriority="251"verticalHuggingPriority="251"ambiguous="YES"text="Sanitize a message"textAlignment="natural"lineBreakMode="tailTruncation"baselineAdjustment="alignBaselines"adjustsFontSizeToFit="NO"translatesAutoresizingMaskIntoConstraints="NO"id="J9r-ue-IJs">
<rectkey="frame"x="16"y="16"width="125"height="17"/>
<accessibilitykey="accessibilityConfiguration">
<accessibilityTraitskey="traits"staticText="YES"notEnabled="YES"/>
</accessibility>
<fontDescriptionkey="fontDescription"type="system"pointSize="14"/>
<nilkey="textColor"/>
<nilkey="highlightedColor"/>
</label>
<textFieldopaque="NO"contentMode="scaleToFill"ambiguous="YES"contentHorizontalAlignment="left"contentVerticalAlignment="center"borderStyle="roundedRect"placeholder="Add your message"textAlignment="natural"minimumFontSize="17"translatesAutoresizingMaskIntoConstraints="NO"id="OXj-U6-8N6"customClass="MDCTextField">
<rectkey="frame"x="16"y="49"width="117"height="30"/>
<fontDescriptionkey="fontDescription"type="system"pointSize="14"/>
<textInputTraitskey="textInputTraits"/>
</textField>
<textFieldopaque="NO"contentMode="scaleToFill"ambiguous="YES"enabled="NO"contentHorizontalAlignment="left"contentVerticalAlignment="center"borderStyle="roundedRect"textAlignment="natural"minimumFontSize="17"translatesAutoresizingMaskIntoConstraints="NO"id="CJK-vk-dJP">
<rectkey="frame"x="16"y="79"width="117"height="30"/>
<accessibilitykey="accessibilityConfiguration">
<accessibilityTraitskey="traits"staticText="YES"notEnabled="YES"/>
</accessibility>
<fontDescriptionkey="fontDescription"type="system"pointSize="14"/>
<textInputTraitskey="textInputTraits"/>
</textField>
<buttonopaque="NO"contentMode="scaleToFill"contentHorizontalAlignment="center"contentVerticalAlignment="center"lineBreakMode="middleTruncation"translatesAutoresizingMaskIntoConstraints="NO"id="eU9-jE-1Pp"customClass="MDCButton">
<rectkey="frame"x="13"y="89"width="120"height="24"/>
<colorkey="backgroundColor"red="1"green="0.62745098040000002"blue="0.0"alpha="1"colorSpace="custom"customColorSpace="sRGB"/>
<constraints>
<constraintfirstAttribute="width"constant="120"id="CLw-1Q-ksc"/>
<constraintfirstAttribute="height"constant="24"id="ecF-QP-eR3"/>
</constraints>
<fontDescriptionkey="fontDescription"type="system"pointSize="14"/>
<statekey="normal"title="Add message">
<colorkey="titleColor"red="1"green="1"blue="1"alpha="1"colorSpace="custom"customColorSpace="sRGB"/>
</state>
<connections>
<actionselector="didTapAddMessage:"destination="rNY-uP-HrF"eventType="touchUpInside"id="rBv-t1-5KQ"/>
</connections>
</button>
</subviews>
</view>
<constraints>
<constraintfirstItem="CJK-vk-dJP"firstAttribute="leading"secondItem="OXj-U6-8N6"secondAttribute="leading"id="4WQ-Ha-sLa"/>
<constraintfirstAttribute="trailing"secondItem="OXj-U6-8N6"secondAttribute="trailing"constant="16"id="GB3-En-hwc"/>
<constraintfirstItem="eU9-jE-1Pp"firstAttribute="top"secondItem="CJK-vk-dJP"secondAttribute="bottom"constant="16"id="Irp-9V-pX2"/>
<constraintfirstItem="J9r-ue-IJs"firstAttribute="leading"secondItem="rNY-uP-HrF"secondAttribute="leading"constant="16"id="TTq-ir-La9"/>
<constraintfirstAttribute="bottom"secondItem="eU9-jE-1Pp"secondAttribute="bottom"constant="16"id="Tmt-nt-DNG"/>
<constraintfirstItem="CJK-vk-dJP"firstAttribute="trailing"secondItem="OXj-U6-8N6"secondAttribute="trailing"id="U14-gQ-urv"/>
<constraintfirstItem="OXj-U6-8N6"firstAttribute="leading"secondItem="J9r-ue-IJs"secondAttribute="leading"id="c3p-tE-uTR"/>
<constraintfirstItem="eU9-jE-1Pp"firstAttribute="trailing"secondItem="CJK-vk-dJP"secondAttribute="trailing"id="lmX-CR-Uek"/>
<constraintfirstItem="OXj-U6-8N6"firstAttribute="top"secondItem="J9r-ue-IJs"secondAttribute="bottom"constant="16"id="oYr-LJ-vCJ"/>
<constraintfirstItem="CJK-vk-dJP"firstAttribute="top"secondItem="OXj-U6-8N6"secondAttribute="bottom"id="v0Y-XP-7hj"/>
<constraintfirstItem="J9r-ue-IJs"firstAttribute="top"secondItem="rNY-uP-HrF"secondAttribute="top"constant="16"id="yIx-2d-x87"/>
</constraints>
<sizekey="customSize"width="281"height="165"/>
<connections>
<outletproperty="button"destination="eU9-jE-1Pp"id="Plv-y8-j1k"/>
<outletproperty="inputField"destination="OXj-U6-8N6"id="eAB-av-dkj"/>
<outletproperty="resultField"destination="CJK-vk-dJP"id="1Et-hg-iK0"/>
</connections>
</collectionViewCell>
</cells>
<connections>
<outletproperty="dataSource"destination="N42-xk-ULx"id="Ucy-Ov-ZP6"/>
<outletproperty="delegate"destination="N42-xk-ULx"id="w5n-81-Ccm"/>
</connections>
</collectionView>
<navigationItemkey="navigationItem"id="gMd-wJ-N4F"/>
</collectionViewController>
<placeholderplaceholderIdentifier="IBFirstResponder"id="acA-xV-gBv"userLabel="First Responder"sceneMemberID="firstResponder"/>
</objects>
<pointkey="canvasLocation"x="1212"y="-1541.3793103448277"/>
</scene>
</scenes>
</document>