PDFFreehandViewController.xib 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <dependencies>
  4. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
  5. <capability name="Safe area layout guides" minToolsVersion="9.0"/>
  6. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  7. </dependencies>
  8. <objects>
  9. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="PDFFreehandViewController">
  10. <connections>
  11. <outlet property="colorView" destination="fcE-nU-Tbx" id="WKY-ka-MlN"/>
  12. <outlet property="contentView" destination="RmZ-GW-e6m" id="grP-PJ-Wwa"/>
  13. <outlet property="drawView" destination="w8G-1U-SCv" id="bWq-Nh-lUF"/>
  14. <outlet property="opacitySlider" destination="0IT-zq-8Gq" id="aAn-Jl-bHY"/>
  15. <outlet property="style1Button" destination="O66-zb-fMU" id="n9Q-td-Xug"/>
  16. <outlet property="style2Button" destination="q8M-ut-VCP" id="o0H-By-C7o"/>
  17. <outlet property="thicknessMaxLabel" destination="Fgu-ng-Ebe" id="xEi-Pl-05c"/>
  18. <outlet property="thicknessMinLabel" destination="hAT-OL-taa" id="sX7-rO-Vnd"/>
  19. <outlet property="thicknessSlider" destination="c1T-FK-9RQ" id="jbg-F4-Mzn"/>
  20. <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
  21. </connections>
  22. </placeholder>
  23. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  24. <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
  25. <rect key="frame" x="0.0" y="0.0" width="320" height="480"/>
  26. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  27. <subviews>
  28. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RmZ-GW-e6m">
  29. <rect key="frame" x="0.0" y="0.0" width="320" height="318"/>
  30. <subviews>
  31. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Color" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5zv-HD-DHw">
  32. <rect key="frame" x="5" y="65" width="26" height="12"/>
  33. <fontDescription key="fontDescription" type="system" pointSize="10"/>
  34. <nil key="textColor"/>
  35. <nil key="highlightedColor"/>
  36. </label>
  37. <view contentMode="scaleToFill" placeholderIntrinsicWidth="infinite" placeholderIntrinsicHeight="50" translatesAutoresizingMaskIntoConstraints="NO" id="fcE-nU-Tbx" customClass="ColorView">
  38. <rect key="frame" x="0.0" y="82" width="320" height="50"/>
  39. </view>
  40. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Opacity" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="m0f-4a-tje">
  41. <rect key="frame" x="5" y="137" width="37.5" height="12"/>
  42. <fontDescription key="fontDescription" type="system" pointSize="10"/>
  43. <nil key="textColor"/>
  44. <nil key="highlightedColor"/>
  45. </label>
  46. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="25%" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="95Z-EW-zCu">
  47. <rect key="frame" x="5" y="163" width="22" height="12"/>
  48. <fontDescription key="fontDescription" type="system" pointSize="10"/>
  49. <nil key="textColor"/>
  50. <nil key="highlightedColor"/>
  51. </label>
  52. <slider opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" value="25" minValue="25" maxValue="100" continuous="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0IT-zq-8Gq">
  53. <rect key="frame" x="30" y="154" width="255" height="31"/>
  54. <connections>
  55. <action selector="sliderValueChanged_Opacity:" destination="-1" eventType="valueChanged" id="nS2-mg-taT"/>
  56. </connections>
  57. </slider>
  58. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="100%" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nE3-2I-4EH">
  59. <rect key="frame" x="288" y="163" width="27" height="12"/>
  60. <fontDescription key="fontDescription" type="system" pointSize="10"/>
  61. <nil key="textColor"/>
  62. <nil key="highlightedColor"/>
  63. </label>
  64. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Thickness" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="T4j-e7-ch6">
  65. <rect key="frame" x="5" y="189" width="49" height="12"/>
  66. <fontDescription key="fontDescription" type="system" pointSize="10"/>
  67. <nil key="textColor"/>
  68. <nil key="highlightedColor"/>
  69. </label>
  70. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0.5" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hAT-OL-taa">
  71. <rect key="frame" x="11.5" y="215" width="15.5" height="12"/>
  72. <fontDescription key="fontDescription" type="system" pointSize="10"/>
  73. <nil key="textColor"/>
  74. <nil key="highlightedColor"/>
  75. </label>
  76. <slider opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" value="0.5" minValue="0.5" maxValue="10" continuous="NO" translatesAutoresizingMaskIntoConstraints="NO" id="c1T-FK-9RQ">
  77. <rect key="frame" x="30" y="206" width="255" height="31"/>
  78. <connections>
  79. <action selector="sliderValueChanged_BorderWidth:" destination="-1" eventType="valueChanged" id="5kt-Of-1FQ"/>
  80. </connections>
  81. </slider>
  82. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="10" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Fgu-ng-Ebe">
  83. <rect key="frame" x="288" y="215" width="11.5" height="12"/>
  84. <fontDescription key="fontDescription" type="system" pointSize="10"/>
  85. <nil key="textColor"/>
  86. <nil key="highlightedColor"/>
  87. </label>
  88. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Style" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uoF-bN-D6f">
  89. <rect key="frame" x="5" y="241" width="24.5" height="12"/>
  90. <fontDescription key="fontDescription" type="system" pointSize="10"/>
  91. <nil key="textColor"/>
  92. <nil key="highlightedColor"/>
  93. </label>
  94. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="O66-zb-fMU">
  95. <rect key="frame" x="0.0" y="268" width="160" height="40"/>
  96. <constraints>
  97. <constraint firstAttribute="height" constant="40" id="udX-1K-MgW"/>
  98. </constraints>
  99. <state key="normal" image="brush_C01.png"/>
  100. <connections>
  101. <action selector="buttonItemClicked_Style:" destination="-1" eventType="touchUpInside" id="TRF-Yz-r1A"/>
  102. </connections>
  103. </button>
  104. <button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="q8M-ut-VCP">
  105. <rect key="frame" x="160" y="268" width="160" height="40"/>
  106. <constraints>
  107. <constraint firstAttribute="height" constant="40" id="mEZ-uI-2gB"/>
  108. </constraints>
  109. <state key="normal" image="brush_C02.png"/>
  110. <connections>
  111. <action selector="buttonItemClicked_Style:" destination="-1" eventType="touchUpInside" id="cxP-SC-OYe"/>
  112. </connections>
  113. </button>
  114. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="w8G-1U-SCv" customClass="PDFFreehandDrawView">
  115. <rect key="frame" x="0.0" y="0.0" width="320" height="60"/>
  116. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  117. <constraints>
  118. <constraint firstAttribute="height" constant="60" id="qw1-mX-RSM"/>
  119. </constraints>
  120. </view>
  121. </subviews>
  122. <viewLayoutGuide key="safeArea" id="bNt-1q-0gq"/>
  123. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  124. <constraints>
  125. <constraint firstItem="bNt-1q-0gq" firstAttribute="trailing" secondItem="w8G-1U-SCv" secondAttribute="trailing" id="0dv-Q8-UpR"/>
  126. <constraint firstItem="5zv-HD-DHw" firstAttribute="leading" secondItem="bNt-1q-0gq" secondAttribute="leading" constant="5" id="2db-gM-mcT"/>
  127. <constraint firstItem="w8G-1U-SCv" firstAttribute="leading" secondItem="bNt-1q-0gq" secondAttribute="leading" id="2lj-OD-MMe"/>
  128. <constraint firstItem="q8M-ut-VCP" firstAttribute="width" secondItem="RmZ-GW-e6m" secondAttribute="width" multiplier="1:2" id="2wX-cR-cwo"/>
  129. <constraint firstItem="uoF-bN-D6f" firstAttribute="leading" secondItem="bNt-1q-0gq" secondAttribute="leading" constant="5" id="BHd-qt-Ecg"/>
  130. <constraint firstItem="w8G-1U-SCv" firstAttribute="top" secondItem="RmZ-GW-e6m" secondAttribute="top" id="CcG-tK-WDF"/>
  131. <constraint firstItem="O66-zb-fMU" firstAttribute="leading" secondItem="bNt-1q-0gq" secondAttribute="leading" id="Fgm-G9-kEG"/>
  132. <constraint firstItem="bNt-1q-0gq" firstAttribute="trailing" secondItem="fcE-nU-Tbx" secondAttribute="trailing" id="GNy-td-kDQ"/>
  133. <constraint firstItem="5zv-HD-DHw" firstAttribute="top" secondItem="w8G-1U-SCv" secondAttribute="bottom" constant="5" id="K4p-85-ADC"/>
  134. <constraint firstItem="nE3-2I-4EH" firstAttribute="leading" secondItem="0IT-zq-8Gq" secondAttribute="trailing" constant="5" id="LBR-Iq-DCx"/>
  135. <constraint firstItem="c1T-FK-9RQ" firstAttribute="top" secondItem="T4j-e7-ch6" secondAttribute="bottom" constant="5" id="NgR-OR-8JR"/>
  136. <constraint firstItem="m0f-4a-tje" firstAttribute="leading" secondItem="bNt-1q-0gq" secondAttribute="leading" constant="5" id="OXg-li-xXU"/>
  137. <constraint firstItem="c1T-FK-9RQ" firstAttribute="leading" secondItem="0IT-zq-8Gq" secondAttribute="leading" id="PaA-3H-scI"/>
  138. <constraint firstItem="hAT-OL-taa" firstAttribute="centerY" secondItem="c1T-FK-9RQ" secondAttribute="centerY" id="Qml-Tp-H36"/>
  139. <constraint firstItem="T4j-e7-ch6" firstAttribute="leading" secondItem="bNt-1q-0gq" secondAttribute="leading" constant="5" id="Qpn-kC-rPe"/>
  140. <constraint firstItem="95Z-EW-zCu" firstAttribute="leading" secondItem="bNt-1q-0gq" secondAttribute="leading" constant="5" id="U2t-bT-jMJ"/>
  141. <constraint firstItem="O66-zb-fMU" firstAttribute="top" secondItem="uoF-bN-D6f" secondAttribute="bottom" constant="15" id="UPk-Dg-8Qs"/>
  142. <constraint firstItem="fcE-nU-Tbx" firstAttribute="leading" secondItem="bNt-1q-0gq" secondAttribute="leading" id="Vqi-im-OCa"/>
  143. <constraint firstItem="Fgu-ng-Ebe" firstAttribute="centerY" secondItem="c1T-FK-9RQ" secondAttribute="centerY" id="Vtv-OX-8bc"/>
  144. <constraint firstItem="bNt-1q-0gq" firstAttribute="bottom" secondItem="O66-zb-fMU" secondAttribute="bottom" constant="10" id="Vxv-hW-3e8"/>
  145. <constraint firstItem="O66-zb-fMU" firstAttribute="width" secondItem="RmZ-GW-e6m" secondAttribute="width" multiplier="1:2" id="XZ6-ZF-k3d"/>
  146. <constraint firstItem="nE3-2I-4EH" firstAttribute="centerY" secondItem="0IT-zq-8Gq" secondAttribute="centerY" id="abH-bi-kX0"/>
  147. <constraint firstItem="0IT-zq-8Gq" firstAttribute="top" secondItem="m0f-4a-tje" secondAttribute="bottom" constant="5" id="bO5-5n-mwW"/>
  148. <constraint firstItem="uoF-bN-D6f" firstAttribute="top" secondItem="c1T-FK-9RQ" secondAttribute="bottom" constant="5" id="c6z-5e-rIe"/>
  149. <constraint firstItem="c1T-FK-9RQ" firstAttribute="leading" secondItem="hAT-OL-taa" secondAttribute="trailing" constant="5" id="fEF-Zl-vgu"/>
  150. <constraint firstItem="T4j-e7-ch6" firstAttribute="top" secondItem="0IT-zq-8Gq" secondAttribute="bottom" constant="5" id="fac-jr-ruC"/>
  151. <constraint firstItem="bNt-1q-0gq" firstAttribute="trailing" secondItem="nE3-2I-4EH" secondAttribute="trailing" constant="5" id="gYc-fB-nRo"/>
  152. <constraint firstItem="Fgu-ng-Ebe" firstAttribute="leading" secondItem="c1T-FK-9RQ" secondAttribute="trailing" constant="5" id="hir-e6-9RL"/>
  153. <constraint firstItem="c1T-FK-9RQ" firstAttribute="trailing" secondItem="0IT-zq-8Gq" secondAttribute="trailing" id="kqg-EC-Y1R"/>
  154. <constraint firstItem="m0f-4a-tje" firstAttribute="top" secondItem="fcE-nU-Tbx" secondAttribute="bottom" constant="5" id="pfO-QR-MHT"/>
  155. <constraint firstItem="q8M-ut-VCP" firstAttribute="leading" secondItem="O66-zb-fMU" secondAttribute="trailing" id="phJ-bO-sh5"/>
  156. <constraint firstItem="95Z-EW-zCu" firstAttribute="centerY" secondItem="0IT-zq-8Gq" secondAttribute="centerY" id="rhB-b5-LWD"/>
  157. <constraint firstItem="0IT-zq-8Gq" firstAttribute="leading" secondItem="95Z-EW-zCu" secondAttribute="trailing" constant="5" id="seq-49-wV6"/>
  158. <constraint firstItem="q8M-ut-VCP" firstAttribute="centerY" secondItem="O66-zb-fMU" secondAttribute="centerY" id="ybi-fP-tWg"/>
  159. <constraint firstItem="fcE-nU-Tbx" firstAttribute="top" secondItem="5zv-HD-DHw" secondAttribute="bottom" constant="5" id="zin-2K-5oc"/>
  160. </constraints>
  161. </view>
  162. </subviews>
  163. <viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
  164. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  165. <constraints>
  166. <constraint firstAttribute="trailing" secondItem="RmZ-GW-e6m" secondAttribute="trailing" id="a4k-1N-nB1"/>
  167. <constraint firstItem="RmZ-GW-e6m" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="eMc-WH-kBX"/>
  168. <constraint firstItem="RmZ-GW-e6m" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="wcU-WY-CSf"/>
  169. </constraints>
  170. <point key="canvasLocation" x="25.5" y="51.5"/>
  171. </view>
  172. </objects>
  173. <resources>
  174. <image name="brush_C01.png" width="92" height="37"/>
  175. <image name="brush_C02.png" width="92" height="37"/>
  176. </resources>
  177. </document>