CarbKit.storyboard 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14854.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="rUL-yg-cFX">
  3. <device id="retina4_7" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14806.4"/>
  7. <capability name="Safe area layout guides" minToolsVersion="9.0"/>
  8. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  9. </dependencies>
  10. <scenes>
  11. <!--Carbohydrates-->
  12. <scene sceneID="CCS-LD-Cvq">
  13. <objects>
  14. <tableViewController storyboardIdentifier="CarbEntryTableViewController" id="rUL-yg-cFX" customClass="CarbEntryTableViewController" customModule="LoopKitUI" customModuleProvider="target" sceneMemberID="viewController">
  15. <tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" id="b1s-8o-0Wp">
  16. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  17. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  18. <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
  19. <view key="tableHeaderView" hidden="YES" contentMode="scaleToFill" id="5Zp-NO-vMs">
  20. <rect key="frame" x="0.0" y="0.0" width="375" height="90"/>
  21. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  22. <subviews>
  23. <stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="cOU-SQ-x7W">
  24. <rect key="frame" x="15" y="8" width="345" height="74"/>
  25. <subviews>
  26. <stackView opaque="NO" contentMode="scaleToFill" alignment="lastBaseline" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="9Sg-Pm-2m0">
  27. <rect key="frame" x="0.0" y="0.0" width="169" height="74"/>
  28. <subviews>
  29. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="..." textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lbE-wQ-pFK">
  30. <rect key="frame" x="0.0" y="20" width="35" height="54"/>
  31. <fontDescription key="fontDescription" type="system" weight="light" pointSize="45"/>
  32. <nil key="textColor"/>
  33. <nil key="highlightedColor"/>
  34. </label>
  35. <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="CzL-qw-IBz">
  36. <rect key="frame" x="37" y="0.0" width="132" height="66.5"/>
  37. <subviews>
  38. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="g COB" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QZb-e1-xwb">
  39. <rect key="frame" x="0.0" y="0.0" width="132" height="16.5"/>
  40. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  41. <nil key="textColor"/>
  42. <nil key="highlightedColor"/>
  43. </label>
  44. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Eur-ji-qsH">
  45. <rect key="frame" x="0.0" y="16.5" width="132" height="50"/>
  46. <fontDescription key="fontDescription" style="UICTFontTextStyleFootnote"/>
  47. <nil key="textColor"/>
  48. <nil key="highlightedColor"/>
  49. </label>
  50. </subviews>
  51. </stackView>
  52. </subviews>
  53. </stackView>
  54. <stackView opaque="NO" contentMode="scaleToFill" alignment="lastBaseline" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="1Zc-wa-yKx">
  55. <rect key="frame" x="179" y="0.0" width="166" height="74"/>
  56. <subviews>
  57. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="..." textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WZV-l9-Ek1">
  58. <rect key="frame" x="0.0" y="20" width="35" height="54"/>
  59. <fontDescription key="fontDescription" type="system" weight="light" pointSize="45"/>
  60. <nil key="textColor"/>
  61. <nil key="highlightedColor"/>
  62. </label>
  63. <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="PCb-FR-N60">
  64. <rect key="frame" x="37" y="0.0" width="129" height="66.5"/>
  65. <subviews>
  66. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="g Total" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pHI-f4-pJp">
  67. <rect key="frame" x="0.0" y="0.0" width="129" height="16.5"/>
  68. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  69. <nil key="textColor"/>
  70. <nil key="highlightedColor"/>
  71. </label>
  72. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oBa-v1-XQP">
  73. <rect key="frame" x="0.0" y="16.5" width="129" height="50"/>
  74. <fontDescription key="fontDescription" style="UICTFontTextStyleFootnote"/>
  75. <nil key="textColor"/>
  76. <nil key="highlightedColor"/>
  77. </label>
  78. </subviews>
  79. </stackView>
  80. </subviews>
  81. </stackView>
  82. </subviews>
  83. </stackView>
  84. </subviews>
  85. <constraints>
  86. <constraint firstItem="cOU-SQ-x7W" firstAttribute="top" secondItem="5Zp-NO-vMs" secondAttribute="topMargin" id="SN9-4D-maL"/>
  87. <constraint firstItem="cOU-SQ-x7W" firstAttribute="leading" secondItem="5Zp-NO-vMs" secondAttribute="leadingMargin" constant="7" id="V0r-4W-z8O"/>
  88. <constraint firstAttribute="bottomMargin" secondItem="cOU-SQ-x7W" secondAttribute="bottom" id="jc7-pj-cCN"/>
  89. <constraint firstAttribute="trailingMargin" secondItem="cOU-SQ-x7W" secondAttribute="trailing" constant="7" id="w7E-8O-9j1"/>
  90. </constraints>
  91. </view>
  92. <view key="tableFooterView" contentMode="scaleToFill" id="icL-h4-vtz">
  93. <rect key="frame" x="0.0" y="190" width="375" height="8"/>
  94. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  95. </view>
  96. <prototypes>
  97. <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="CarbEntry" textLabel="vM9-H7-t3C" detailTextLabel="m95-PG-bTq" style="IBUITableViewCellStyleValue1" id="i7x-SU-PRi">
  98. <rect key="frame" x="0.0" y="118" width="375" height="44"/>
  99. <autoresizingMask key="autoresizingMask"/>
  100. <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="i7x-SU-PRi" id="Fje-90-ner">
  101. <rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
  102. <autoresizingMask key="autoresizingMask"/>
  103. <subviews>
  104. <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="vM9-H7-t3C">
  105. <rect key="frame" x="16" y="12" width="33.5" height="20.5"/>
  106. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  107. <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
  108. <nil key="textColor"/>
  109. <nil key="highlightedColor"/>
  110. </label>
  111. <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Detail" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="m95-PG-bTq">
  112. <rect key="frame" x="315" y="12" width="44" height="20.5"/>
  113. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  114. <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
  115. <color key="textColor" systemColor="secondaryLabelColor" red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
  116. <nil key="highlightedColor"/>
  117. </label>
  118. </subviews>
  119. </tableViewCellContentView>
  120. <connections>
  121. <segue destination="LyL-9U-twn" kind="show" id="rV7-J1-5KP"/>
  122. </connections>
  123. </tableViewCell>
  124. </prototypes>
  125. <connections>
  126. <outlet property="dataSource" destination="rUL-yg-cFX" id="Mo4-jP-4be"/>
  127. <outlet property="delegate" destination="rUL-yg-cFX" id="Hwo-ME-91Z"/>
  128. </connections>
  129. </tableView>
  130. <navigationItem key="navigationItem" title="Carbohydrates" id="Qgq-n1-hm4">
  131. <barButtonItem key="rightBarButtonItem" enabled="NO" systemItem="add" id="ddV-Ce-IIn">
  132. <connections>
  133. <segue destination="wgu-gT-TgV" kind="presentation" id="jMZ-bg-GVE"/>
  134. </connections>
  135. </barButtonItem>
  136. </navigationItem>
  137. <simulatedNavigationBarMetrics key="simulatedTopBarMetrics" prompted="NO"/>
  138. <connections>
  139. <outlet property="COBDateLabel" destination="Eur-ji-qsH" id="YHw-7r-Mw0"/>
  140. <outlet property="COBValueLabel" destination="lbE-wQ-pFK" id="um6-qB-9Od"/>
  141. <outlet property="authorizationRequiredMessageView" destination="tEe-h4-1UT" id="OK2-d8-aLn"/>
  142. <outlet property="totalDateLabel" destination="oBa-v1-XQP" id="hcX-ed-bel"/>
  143. <outlet property="totalValueLabel" destination="WZV-l9-Ek1" id="54A-72-11g"/>
  144. <outlet property="unavailableMessageView" destination="X5E-7c-9de" id="Bwk-Ig-goH"/>
  145. </connections>
  146. </tableViewController>
  147. <placeholder placeholderIdentifier="IBFirstResponder" id="y16-eD-Eid" userLabel="First Responder" sceneMemberID="firstResponder"/>
  148. <view contentMode="scaleToFill" id="tEe-h4-1UT">
  149. <rect key="frame" x="0.0" y="0.0" width="300" height="300"/>
  150. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  151. <subviews>
  152. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="euH-1G-uYm">
  153. <rect key="frame" x="20" y="94" width="260" height="112.5"/>
  154. <subviews>
  155. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8sx-XB-DRV">
  156. <rect key="frame" x="93" y="79.5" width="74" height="33"/>
  157. <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
  158. <state key="normal" title="Authorize"/>
  159. <connections>
  160. <action selector="authorizeHealth:" destination="rUL-yg-cFX" eventType="touchUpInside" id="QFA-0t-kNV"/>
  161. </connections>
  162. </button>
  163. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Authorize access to Health to continue" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7xi-Om-Y53">
  164. <rect key="frame" x="0.0" y="8" width="260" height="63.5"/>
  165. <fontDescription key="fontDescription" style="UICTFontTextStyleTitle1"/>
  166. <color key="textColor" systemColor="secondaryLabelColor" red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
  167. <nil key="highlightedColor"/>
  168. </label>
  169. </subviews>
  170. <constraints>
  171. <constraint firstAttribute="trailing" secondItem="7xi-Om-Y53" secondAttribute="trailing" id="2xh-qh-j5n"/>
  172. <constraint firstItem="8sx-XB-DRV" firstAttribute="top" secondItem="7xi-Om-Y53" secondAttribute="bottom" constant="8" symbolic="YES" id="5uc-kK-cJK"/>
  173. <constraint firstAttribute="bottom" secondItem="8sx-XB-DRV" secondAttribute="bottom" id="D0X-zZ-WLA"/>
  174. <constraint firstAttribute="bottomMargin" secondItem="7xi-Om-Y53" secondAttribute="bottom" id="HjF-Tt-qJA"/>
  175. <constraint firstItem="7xi-Om-Y53" firstAttribute="leading" secondItem="euH-1G-uYm" secondAttribute="leading" id="jlM-P3-28N"/>
  176. <constraint firstItem="7xi-Om-Y53" firstAttribute="top" secondItem="euH-1G-uYm" secondAttribute="topMargin" id="jxD-mV-Cfa"/>
  177. <constraint firstItem="8sx-XB-DRV" firstAttribute="centerX" secondItem="euH-1G-uYm" secondAttribute="centerX" id="zof-l2-Nas"/>
  178. </constraints>
  179. <variation key="default">
  180. <mask key="constraints">
  181. <exclude reference="HjF-Tt-qJA"/>
  182. </mask>
  183. </variation>
  184. </view>
  185. </subviews>
  186. <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
  187. <constraints>
  188. <constraint firstAttribute="trailing" secondItem="euH-1G-uYm" secondAttribute="trailing" constant="20" symbolic="YES" id="GAi-Qi-Hzs"/>
  189. <constraint firstItem="euH-1G-uYm" firstAttribute="leading" secondItem="tEe-h4-1UT" secondAttribute="leading" constant="20" symbolic="YES" id="HFu-Pt-Zoi"/>
  190. <constraint firstItem="euH-1G-uYm" firstAttribute="centerY" secondItem="tEe-h4-1UT" secondAttribute="centerY" id="U6D-Sj-ilZ"/>
  191. <constraint firstItem="euH-1G-uYm" firstAttribute="centerX" secondItem="tEe-h4-1UT" secondAttribute="centerX" id="djl-i6-ieu"/>
  192. </constraints>
  193. <viewLayoutGuide key="safeArea" id="vOo-Rm-zxs"/>
  194. </view>
  195. <view contentMode="scaleToFill" id="X5E-7c-9de">
  196. <rect key="frame" x="0.0" y="0.0" width="300" height="300"/>
  197. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  198. <subviews>
  199. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="G0z-rK-KG9">
  200. <rect key="frame" x="20" y="110.5" width="260" height="79.5"/>
  201. <subviews>
  202. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="HealthKit is not available on this device" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nXh-BM-MuC">
  203. <rect key="frame" x="0.0" y="8" width="260" height="63.5"/>
  204. <fontDescription key="fontDescription" style="UICTFontTextStyleTitle1"/>
  205. <color key="textColor" systemColor="secondaryLabelColor" red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
  206. <nil key="highlightedColor"/>
  207. </label>
  208. </subviews>
  209. <constraints>
  210. <constraint firstItem="nXh-BM-MuC" firstAttribute="leading" secondItem="G0z-rK-KG9" secondAttribute="leading" id="8le-Wq-GTz"/>
  211. <constraint firstItem="nXh-BM-MuC" firstAttribute="top" secondItem="G0z-rK-KG9" secondAttribute="topMargin" id="VTU-gc-CDU"/>
  212. <constraint firstAttribute="bottomMargin" secondItem="nXh-BM-MuC" secondAttribute="bottom" id="aBM-Oq-wEQ"/>
  213. <constraint firstAttribute="trailing" secondItem="nXh-BM-MuC" secondAttribute="trailing" id="b21-g7-8Lb"/>
  214. </constraints>
  215. </view>
  216. </subviews>
  217. <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
  218. <constraints>
  219. <constraint firstItem="G0z-rK-KG9" firstAttribute="centerY" secondItem="X5E-7c-9de" secondAttribute="centerY" id="8bo-Je-Rz1"/>
  220. <constraint firstAttribute="trailing" secondItem="G0z-rK-KG9" secondAttribute="trailing" constant="20" symbolic="YES" id="B06-SX-PKB"/>
  221. <constraint firstItem="G0z-rK-KG9" firstAttribute="centerX" secondItem="X5E-7c-9de" secondAttribute="centerX" id="gRi-I4-p79"/>
  222. <constraint firstItem="G0z-rK-KG9" firstAttribute="leading" secondItem="X5E-7c-9de" secondAttribute="leading" constant="20" symbolic="YES" id="yo1-2T-5ph"/>
  223. </constraints>
  224. <viewLayoutGuide key="safeArea" id="k1h-jG-n3F"/>
  225. </view>
  226. </objects>
  227. <point key="canvasLocation" x="2445" y="-810"/>
  228. </scene>
  229. <!--Navigation Controller-->
  230. <scene sceneID="mfE-Nk-SIy">
  231. <objects>
  232. <navigationController id="wgu-gT-TgV" sceneMemberID="viewController">
  233. <navigationBar key="navigationBar" contentMode="scaleToFill" id="dds-bM-bvt">
  234. <rect key="frame" x="0.0" y="0.0" width="375" height="56"/>
  235. <autoresizingMask key="autoresizingMask"/>
  236. </navigationBar>
  237. <connections>
  238. <segue destination="LyL-9U-twn" kind="relationship" relationship="rootViewController" id="9fZ-7e-aMq"/>
  239. </connections>
  240. </navigationController>
  241. <placeholder placeholderIdentifier="IBFirstResponder" id="UVT-Hv-hpW" userLabel="First Responder" sceneMemberID="firstResponder"/>
  242. </objects>
  243. <point key="canvasLocation" x="3319" y="-1638"/>
  244. </scene>
  245. <!--Add/Edit Carb Entry-->
  246. <scene sceneID="BUy-hU-2jT">
  247. <objects>
  248. <tableViewController storyboardIdentifier="CarbEntryEditViewController" id="LyL-9U-twn" customClass="CarbEntryEditViewController" customModule="LoopKitUI" customModuleProvider="target" sceneMemberID="viewController">
  249. <tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" keyboardDismissMode="onDrag" dataMode="prototypes" style="grouped" separatorStyle="default" rowHeight="44" sectionHeaderHeight="18" sectionFooterHeight="18" id="9Ci-XW-6nA">
  250. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  251. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  252. <color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
  253. <prototypes>
  254. <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="DecimalTextFieldTableViewCell" id="Ace-JU-zKh" customClass="DecimalTextFieldTableViewCell" customModule="LoopKitUI" customModuleProvider="target">
  255. <rect key="frame" x="0.0" y="55.5" width="375" height="44"/>
  256. <autoresizingMask key="autoresizingMask"/>
  257. <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Ace-JU-zKh" id="vvs-Vh-Dbj">
  258. <rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
  259. <autoresizingMask key="autoresizingMask"/>
  260. <subviews>
  261. <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="0" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="qU9-hG-hMu">
  262. <rect key="frame" x="171.5" y="15" width="175.5" height="14"/>
  263. <color key="textColor" systemColor="secondaryLabelColor" red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
  264. <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
  265. <textInputTraits key="textInputTraits" keyboardType="decimalPad" returnKeyType="next"/>
  266. </textField>
  267. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="g" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="D2S-2h-yH6">
  268. <rect key="frame" x="349" y="11.5" width="10" height="20.5"/>
  269. <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
  270. <color key="textColor" systemColor="secondaryLabelColor" red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
  271. <nil key="highlightedColor"/>
  272. </label>
  273. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Amount Consumed" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="K0S-my-3qL">
  274. <rect key="frame" x="16" y="12" width="147.5" height="20.5"/>
  275. <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
  276. <nil key="textColor"/>
  277. <nil key="highlightedColor"/>
  278. </label>
  279. </subviews>
  280. <constraints>
  281. <constraint firstItem="D2S-2h-yH6" firstAttribute="baseline" secondItem="qU9-hG-hMu" secondAttribute="baseline" id="AXU-cq-Gxc"/>
  282. <constraint firstItem="D2S-2h-yH6" firstAttribute="leading" secondItem="qU9-hG-hMu" secondAttribute="trailing" constant="2" id="G8z-4v-USb"/>
  283. <constraint firstAttribute="bottomMargin" secondItem="qU9-hG-hMu" secondAttribute="bottom" priority="750" constant="4" id="OX0-CW-gmF"/>
  284. <constraint firstItem="qU9-hG-hMu" firstAttribute="top" secondItem="vvs-Vh-Dbj" secondAttribute="topMargin" constant="4" id="bq2-k4-4AD"/>
  285. <constraint firstItem="K0S-my-3qL" firstAttribute="centerY" secondItem="vvs-Vh-Dbj" secondAttribute="centerY" id="dZW-pJ-gS5"/>
  286. <constraint firstAttribute="trailingMargin" secondItem="D2S-2h-yH6" secondAttribute="trailing" id="mfG-AP-DuG"/>
  287. <constraint firstItem="K0S-my-3qL" firstAttribute="leading" secondItem="vvs-Vh-Dbj" secondAttribute="leadingMargin" id="msn-9C-u2W"/>
  288. <constraint firstItem="qU9-hG-hMu" firstAttribute="leading" secondItem="K0S-my-3qL" secondAttribute="trailing" constant="8" symbolic="YES" id="sED-aS-6m4"/>
  289. <constraint firstItem="qU9-hG-hMu" firstAttribute="centerY" secondItem="vvs-Vh-Dbj" secondAttribute="centerY" id="z3u-0p-Mby"/>
  290. </constraints>
  291. </tableViewCellContentView>
  292. <connections>
  293. <outlet property="textField" destination="qU9-hG-hMu" id="PP5-os-4aH"/>
  294. <outlet property="unitLabel" destination="D2S-2h-yH6" id="HBr-nn-Pb2"/>
  295. </connections>
  296. </tableViewCell>
  297. <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="TextFieldTableViewCell" id="99D-xi-Yp9" customClass="TextFieldTableViewCell" customModule="LoopKitUI" customModuleProvider="target">
  298. <rect key="frame" x="0.0" y="99.5" width="375" height="44"/>
  299. <autoresizingMask key="autoresizingMask"/>
  300. <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="99D-xi-Yp9" id="Zoy-aN-TbY">
  301. <rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
  302. <autoresizingMask key="autoresizingMask"/>
  303. <subviews>
  304. <textField opaque="NO" contentMode="scaleToFill" verticalCompressionResistancePriority="751" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="right" minimumFontSize="15" translatesAutoresizingMaskIntoConstraints="NO" id="BU1-sg-61t" customClass="CustomInputTextField" customModule="LoopKitUI" customModuleProvider="target">
  305. <rect key="frame" x="105" y="15" width="254" height="24"/>
  306. <color key="textColor" systemColor="secondaryLabelColor" red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
  307. <fontDescription key="fontDescription" style="UICTFontTextStyleTitle3"/>
  308. <textInputTraits key="textInputTraits" returnKeyType="next"/>
  309. </textField>
  310. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" text="Food Type" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bdP-2A-DB8">
  311. <rect key="frame" x="16" y="18" width="81" height="8"/>
  312. <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
  313. <nil key="textColor"/>
  314. <nil key="highlightedColor"/>
  315. </label>
  316. </subviews>
  317. <constraints>
  318. <constraint firstItem="BU1-sg-61t" firstAttribute="top" secondItem="Zoy-aN-TbY" secondAttribute="topMargin" constant="4" id="GR5-KC-idh"/>
  319. <constraint firstItem="BU1-sg-61t" firstAttribute="firstBaseline" secondItem="bdP-2A-DB8" secondAttribute="firstBaseline" id="Uw8-Ib-Aqx"/>
  320. <constraint firstAttribute="trailingMargin" secondItem="BU1-sg-61t" secondAttribute="trailing" id="W90-gg-fS0"/>
  321. <constraint firstItem="bdP-2A-DB8" firstAttribute="leading" secondItem="Zoy-aN-TbY" secondAttribute="leadingMargin" id="Yp5-s7-3kJ"/>
  322. <constraint firstItem="BU1-sg-61t" firstAttribute="leading" secondItem="bdP-2A-DB8" secondAttribute="trailing" constant="8" symbolic="YES" id="ato-cb-C4h"/>
  323. <constraint firstItem="bdP-2A-DB8" firstAttribute="centerY" secondItem="Zoy-aN-TbY" secondAttribute="centerY" id="cNN-yH-xbN"/>
  324. <constraint firstAttribute="bottomMargin" secondItem="BU1-sg-61t" secondAttribute="bottom" priority="750" constant="4" id="lSf-am-liy"/>
  325. </constraints>
  326. </tableViewCellContentView>
  327. <connections>
  328. <outlet property="textField" destination="BU1-sg-61t" id="onx-xO-uI7"/>
  329. </connections>
  330. </tableViewCell>
  331. <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="FoodTypeShortcutCell" id="WC7-gw-ru6" customClass="FoodTypeShortcutCell" customModule="LoopKitUI" customModuleProvider="target">
  332. <rect key="frame" x="0.0" y="143.5" width="375" height="44"/>
  333. <autoresizingMask key="autoresizingMask"/>
  334. <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="WC7-gw-ru6" id="9ds-EY-fUr">
  335. <rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
  336. <autoresizingMask key="autoresizingMask"/>
  337. <subviews>
  338. <stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="KGo-Jr-uxw">
  339. <rect key="frame" x="184" y="4" width="175" height="40"/>
  340. <subviews>
  341. <button opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XaD-wV-oiS">
  342. <rect key="frame" x="0.0" y="0.0" width="40" height="40"/>
  343. <constraints>
  344. <constraint firstAttribute="width" secondItem="XaD-wV-oiS" secondAttribute="height" multiplier="1:1" id="4Hh-Pk-m4d"/>
  345. </constraints>
  346. <fontDescription key="fontDescription" style="UICTFontTextStyleTitle3"/>
  347. <inset key="contentEdgeInsets" minX="2" minY="0.0" maxX="0.0" maxY="0.0"/>
  348. <state key="normal" title="🍭"/>
  349. <state key="selected" backgroundImage="Oval Selection"/>
  350. <state key="highlighted" backgroundImage="Oval Selection"/>
  351. <connections>
  352. <action selector="buttonTapped:" destination="WC7-gw-ru6" eventType="touchUpInside" id="5Ft-9l-7gu"/>
  353. </connections>
  354. </button>
  355. <button opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Me5-3D-C34">
  356. <rect key="frame" x="45" y="0.0" width="40" height="40"/>
  357. <constraints>
  358. <constraint firstAttribute="width" secondItem="Me5-3D-C34" secondAttribute="height" multiplier="1:1" id="pPD-0m-Rie"/>
  359. </constraints>
  360. <fontDescription key="fontDescription" style="UICTFontTextStyleTitle3"/>
  361. <inset key="contentEdgeInsets" minX="3" minY="0.0" maxX="0.0" maxY="0.0"/>
  362. <state key="normal" title="🌮"/>
  363. <state key="selected" backgroundImage="Oval Selection"/>
  364. <state key="highlighted" backgroundImage="Oval Selection"/>
  365. <connections>
  366. <action selector="buttonTapped:" destination="WC7-gw-ru6" eventType="touchUpInside" id="8cP-Ht-Rdm"/>
  367. </connections>
  368. </button>
  369. <button opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dyX-Zv-8wU">
  370. <rect key="frame" x="90" y="0.0" width="40" height="40"/>
  371. <constraints>
  372. <constraint firstAttribute="width" secondItem="dyX-Zv-8wU" secondAttribute="height" multiplier="1:1" id="i1A-Yl-2K4"/>
  373. </constraints>
  374. <fontDescription key="fontDescription" style="UICTFontTextStyleTitle3"/>
  375. <inset key="contentEdgeInsets" minX="3" minY="0.0" maxX="0.0" maxY="0.0"/>
  376. <state key="normal" title="🍕"/>
  377. <state key="selected" backgroundImage="Oval Selection"/>
  378. <state key="highlighted" backgroundImage="Oval Selection"/>
  379. <connections>
  380. <action selector="buttonTapped:" destination="WC7-gw-ru6" eventType="touchUpInside" id="LMf-YH-Glr"/>
  381. </connections>
  382. </button>
  383. <button opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Mde-by-DTA">
  384. <rect key="frame" x="135" y="0.0" width="40" height="40"/>
  385. <constraints>
  386. <constraint firstAttribute="width" secondItem="Mde-by-DTA" secondAttribute="height" multiplier="1:1" id="WPt-ZL-25c"/>
  387. </constraints>
  388. <fontDescription key="fontDescription" style="UICTFontTextStyleTitle3"/>
  389. <inset key="contentEdgeInsets" minX="3" minY="0.0" maxX="0.0" maxY="0.0"/>
  390. <state key="normal" title="🍽"/>
  391. <state key="selected" backgroundImage="Oval Selection"/>
  392. <state key="highlighted" backgroundImage="Oval Selection"/>
  393. <connections>
  394. <action selector="buttonTapped:" destination="WC7-gw-ru6" eventType="touchUpInside" id="DSe-7Q-Kgv"/>
  395. </connections>
  396. </button>
  397. </subviews>
  398. <constraints>
  399. <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="40" id="pOj-cM-U6l"/>
  400. </constraints>
  401. </stackView>
  402. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" text="Food Type" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NRZ-dT-iqj">
  403. <rect key="frame" x="16" y="12" width="81" height="20.5"/>
  404. <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
  405. <nil key="textColor"/>
  406. <nil key="highlightedColor"/>
  407. </label>
  408. </subviews>
  409. <constraints>
  410. <constraint firstAttribute="trailingMargin" secondItem="KGo-Jr-uxw" secondAttribute="trailing" id="3hY-2e-LYK"/>
  411. <constraint firstItem="KGo-Jr-uxw" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="NRZ-dT-iqj" secondAttribute="trailing" constant="8" symbolic="YES" id="7Qr-6r-lcu"/>
  412. <constraint firstItem="NRZ-dT-iqj" firstAttribute="centerY" secondItem="9ds-EY-fUr" secondAttribute="centerY" id="Atr-bf-Ddi"/>
  413. <constraint firstAttribute="bottom" secondItem="KGo-Jr-uxw" secondAttribute="bottom" priority="750" constant="4" id="cvP-zZ-cgY"/>
  414. <constraint firstItem="NRZ-dT-iqj" firstAttribute="leading" secondItem="9ds-EY-fUr" secondAttribute="leadingMargin" id="m6A-Bd-Uai"/>
  415. <constraint firstItem="KGo-Jr-uxw" firstAttribute="top" secondItem="9ds-EY-fUr" secondAttribute="top" constant="4" id="qZp-0X-xDh"/>
  416. </constraints>
  417. </tableViewCellContentView>
  418. <connections>
  419. <outlet property="buttonStack" destination="KGo-Jr-uxw" id="I4m-BA-Xwi"/>
  420. </connections>
  421. </tableViewCell>
  422. </prototypes>
  423. <sections/>
  424. <connections>
  425. <outlet property="dataSource" destination="LyL-9U-twn" id="5UQ-wx-mja"/>
  426. <outlet property="delegate" destination="LyL-9U-twn" id="2jX-b3-pDH"/>
  427. </connections>
  428. </tableView>
  429. <navigationItem key="navigationItem" title="Add/Edit Carb Entry" id="bM2-yI-YmX">
  430. <barButtonItem key="leftBarButtonItem" systemItem="cancel" id="7Qi-am-Msi">
  431. <connections>
  432. <segue destination="T5h-mI-vtL" kind="unwind" identifier="" unwindAction="unwindFromEditing:" id="UWh-NX-iGp"/>
  433. </connections>
  434. </barButtonItem>
  435. <barButtonItem key="rightBarButtonItem" style="done" systemItem="save" id="V0S-Me-oAl">
  436. <connections>
  437. <segue destination="T5h-mI-vtL" kind="unwind" unwindAction="unwindFromEditing:" id="h8M-r9-ToD"/>
  438. </connections>
  439. </barButtonItem>
  440. </navigationItem>
  441. <connections>
  442. <outlet property="saveButtonItem" destination="V0S-Me-oAl" id="jte-UB-Cfb"/>
  443. </connections>
  444. </tableViewController>
  445. <placeholder placeholderIdentifier="IBFirstResponder" id="71E-eW-u0n" userLabel="First Responder" sceneMemberID="firstResponder"/>
  446. <exit id="T5h-mI-vtL" userLabel="Exit" sceneMemberID="exit"/>
  447. </objects>
  448. <point key="canvasLocation" x="3317.5999999999999" y="-810.0449775112445"/>
  449. </scene>
  450. </scenes>
  451. <resources>
  452. <image name="Oval Selection" width="21" height="21"/>
  453. </resources>
  454. <inferredMetricsTieBreakers>
  455. <segue reference="rV7-J1-5KP"/>
  456. </inferredMetricsTieBreakers>
  457. </document>