Main.storyboard 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
  3. <dependencies>
  4. <deployment identifier="iOS"/>
  5. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
  6. <capability name="Constraints to layout margins" minToolsVersion="6.0"/>
  7. </dependencies>
  8. <scenes>
  9. <!--View Controller-->
  10. <scene sceneID="tne-QT-ifu">
  11. <objects>
  12. <viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Demo" customModuleProvider="target" sceneMemberID="viewController">
  13. <layoutGuides>
  14. <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
  15. <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
  16. </layoutGuides>
  17. <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
  18. <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
  19. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  20. <subviews>
  21. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hWK-Bu-8u4">
  22. <rect key="frame" x="219" y="160" width="162" height="32"/>
  23. <fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>
  24. <state key="normal" title="Delete from Keychain">
  25. <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
  26. </state>
  27. <connections>
  28. <action selector="onDeleteTapped:" destination="BYZ-38-t0r" eventType="touchUpInside" id="AY0-oE-tv6"/>
  29. </connections>
  30. </button>
  31. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="b4T-JG-Zbo">
  32. <rect key="frame" x="236" y="108" width="127" height="32"/>
  33. <fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>
  34. <state key="normal" title="Save in Keychain">
  35. <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
  36. </state>
  37. <connections>
  38. <action selector="onSaveTapped:" destination="BYZ-38-t0r" eventType="touchUpInside" id="StT-Mn-tqX"/>
  39. </connections>
  40. </button>
  41. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NDv-PR-OK3">
  42. <rect key="frame" x="28" y="335" width="536" height="20.5"/>
  43. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  44. <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
  45. <nil key="highlightedColor"/>
  46. </label>
  47. <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Hello World!" borderStyle="roundedRect" placeholder="Text to save in KeychainSwift" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="xkp-Od-gCQ">
  48. <rect key="frame" x="20" y="54" width="560" height="30"/>
  49. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  50. <textInputTraits key="textInputTraits"/>
  51. </textField>
  52. <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="w7p-LD-g9j">
  53. <rect key="frame" x="325" y="212" width="51" height="31"/>
  54. </switch>
  55. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Synchronizable" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pZ7-Ub-QmV">
  56. <rect key="frame" x="190" y="217" width="118" height="21"/>
  57. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  58. <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
  59. <nil key="highlightedColor"/>
  60. </label>
  61. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QP7-SR-8QJ">
  62. <rect key="frame" x="230" y="283" width="140" height="32"/>
  63. <fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>
  64. <state key="normal" title="Get from Keychain">
  65. <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
  66. </state>
  67. <connections>
  68. <action selector="onGetTapped:" destination="BYZ-38-t0r" eventType="touchUpInside" id="OdD-Mn-cTm"/>
  69. </connections>
  70. </button>
  71. </subviews>
  72. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  73. <gestureRecognizers/>
  74. <constraints>
  75. <constraint firstItem="QP7-SR-8QJ" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="2Qi-WJ-pvW"/>
  76. <constraint firstItem="w7p-LD-g9j" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" constant="50" id="5De-mx-U8l"/>
  77. <constraint firstItem="w7p-LD-g9j" firstAttribute="top" secondItem="hWK-Bu-8u4" secondAttribute="bottom" constant="20" id="BMz-4l-Y3k"/>
  78. <constraint firstItem="NDv-PR-OK3" firstAttribute="top" secondItem="QP7-SR-8QJ" secondAttribute="bottom" constant="20" id="HOc-KB-LXB"/>
  79. <constraint firstItem="pZ7-Ub-QmV" firstAttribute="centerY" secondItem="w7p-LD-g9j" secondAttribute="centerY" id="Iau-2m-FSy"/>
  80. <constraint firstAttribute="centerX" secondItem="hWK-Bu-8u4" secondAttribute="centerX" id="VJ4-XC-zFq"/>
  81. <constraint firstAttribute="centerX" secondItem="b4T-JG-Zbo" secondAttribute="centerX" id="cbI-es-jn6"/>
  82. <constraint firstItem="NDv-PR-OK3" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" constant="8" id="f2v-aI-fuD"/>
  83. <constraint firstItem="QP7-SR-8QJ" firstAttribute="top" secondItem="w7p-LD-g9j" secondAttribute="bottom" constant="40" id="fPe-Dn-3wy"/>
  84. <constraint firstItem="b4T-JG-Zbo" firstAttribute="top" secondItem="xkp-Od-gCQ" secondAttribute="bottom" constant="24" id="hTO-Zq-9F4"/>
  85. <constraint firstAttribute="trailingMargin" secondItem="xkp-Od-gCQ" secondAttribute="trailing" id="jW7-wf-Lg2"/>
  86. <constraint firstItem="hWK-Bu-8u4" firstAttribute="top" secondItem="b4T-JG-Zbo" secondAttribute="bottom" constant="20" id="oVb-ZZ-R8a"/>
  87. <constraint firstItem="w7p-LD-g9j" firstAttribute="leading" secondItem="pZ7-Ub-QmV" secondAttribute="trailing" constant="17" id="rR7-DW-fh2"/>
  88. <constraint firstItem="xkp-Od-gCQ" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="sBp-QB-I3r"/>
  89. <constraint firstAttribute="trailingMargin" secondItem="NDv-PR-OK3" secondAttribute="trailing" constant="16" id="vAI-Yb-Kci"/>
  90. <constraint firstItem="xkp-Od-gCQ" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="34" id="zhk-dr-xC7"/>
  91. </constraints>
  92. <connections>
  93. <outletCollection property="gestureRecognizers" destination="zaZ-rL-hDm" appends="YES" id="k9q-L3-0Ey"/>
  94. </connections>
  95. </view>
  96. <connections>
  97. <outlet property="synchronizableSwitch" destination="w7p-LD-g9j" id="xKt-Tv-MBN"/>
  98. <outlet property="textField" destination="xkp-Od-gCQ" id="lld-hT-WbW"/>
  99. <outlet property="valueLabel" destination="NDv-PR-OK3" id="O2G-6d-xCJ"/>
  100. </connections>
  101. </viewController>
  102. <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
  103. <tapGestureRecognizer id="zaZ-rL-hDm">
  104. <connections>
  105. <action selector="didTapView:" destination="BYZ-38-t0r" id="zEX-BD-Laa"/>
  106. </connections>
  107. </tapGestureRecognizer>
  108. </objects>
  109. </scene>
  110. </scenes>
  111. </document>