BatteryLevelHUDView.xib 5.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14810.11" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina4_7" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14766.13"/>
  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. <objects>
  11. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
  12. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  13. <view contentMode="scaleToFill" id="6Oq-Ei-hVf" customClass="BatteryLevelHUDView" customModule="LoopKitUI">
  14. <rect key="frame" x="0.0" y="0.0" width="112" height="81"/>
  15. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  16. <subviews>
  17. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="249" text="100%" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.80000001192092896" adjustsLetterSpacingToFitWidth="YES" adjustsFontForContentSizeCategory="YES" translatesAutoresizingMaskIntoConstraints="NO" id="edK-06-YkL">
  18. <rect key="frame" x="2" y="56" width="108" height="25"/>
  19. <fontDescription key="fontDescription" style="UICTFontTextStyleCaption2"/>
  20. <nil key="textColor"/>
  21. <nil key="highlightedColor"/>
  22. </label>
  23. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bVp-hz-Iqp">
  24. <rect key="frame" x="34" y="9" width="44" height="44"/>
  25. <subviews>
  26. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4vG-st-3Jr" customClass="LevelMaskView" customModule="LoopKitUI">
  27. <rect key="frame" x="0.0" y="2" width="44" height="42"/>
  28. <userDefinedRuntimeAttributes>
  29. <userDefinedRuntimeAttribute type="image" keyPath="maskImage" value="battery_mask"/>
  30. </userDefinedRuntimeAttributes>
  31. </view>
  32. <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="battery" translatesAutoresizingMaskIntoConstraints="NO" id="9iC-cs-8fx">
  33. <rect key="frame" x="9" y="0.0" width="26" height="44"/>
  34. </imageView>
  35. </subviews>
  36. <constraints>
  37. <constraint firstItem="4vG-st-3Jr" firstAttribute="leading" secondItem="bVp-hz-Iqp" secondAttribute="leading" id="7Pd-FP-nU1"/>
  38. <constraint firstItem="4vG-st-3Jr" firstAttribute="top" secondItem="bVp-hz-Iqp" secondAttribute="top" constant="2" id="8zf-A4-DjZ"/>
  39. <constraint firstItem="9iC-cs-8fx" firstAttribute="centerX" secondItem="bVp-hz-Iqp" secondAttribute="centerX" id="K7p-oX-v0a"/>
  40. <constraint firstAttribute="width" constant="44" id="P3z-R7-h8m"/>
  41. <constraint firstAttribute="height" constant="44" id="Qga-vf-ol4"/>
  42. <constraint firstItem="9iC-cs-8fx" firstAttribute="centerY" secondItem="bVp-hz-Iqp" secondAttribute="centerY" id="eeP-WQ-uSL"/>
  43. <constraint firstAttribute="trailing" secondItem="4vG-st-3Jr" secondAttribute="trailing" id="nlS-Me-9J5"/>
  44. <constraint firstAttribute="bottom" secondItem="4vG-st-3Jr" secondAttribute="bottom" id="qNA-y7-ViP"/>
  45. </constraints>
  46. </view>
  47. </subviews>
  48. <accessibility key="accessibilityConfiguration" label="Battery Level">
  49. <bool key="isElement" value="YES"/>
  50. </accessibility>
  51. <constraints>
  52. <constraint firstAttribute="bottom" secondItem="edK-06-YkL" secondAttribute="bottom" id="FOV-EF-Vzz"/>
  53. <constraint firstItem="edK-06-YkL" firstAttribute="leading" secondItem="6Oq-Ei-hVf" secondAttribute="leading" constant="2" id="IxK-mo-Wa8"/>
  54. <constraint firstItem="edK-06-YkL" firstAttribute="top" secondItem="bVp-hz-Iqp" secondAttribute="bottom" constant="3" id="MQO-ld-5PF"/>
  55. <constraint firstItem="bVp-hz-Iqp" firstAttribute="top" secondItem="6Oq-Ei-hVf" secondAttribute="top" constant="9" id="mgw-5E-82C"/>
  56. <constraint firstItem="bVp-hz-Iqp" firstAttribute="centerX" secondItem="6Oq-Ei-hVf" secondAttribute="centerX" id="nO3-uA-Tel"/>
  57. <constraint firstAttribute="trailing" secondItem="edK-06-YkL" secondAttribute="trailing" constant="2" id="wpf-3J-UyW"/>
  58. </constraints>
  59. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  60. <viewLayoutGuide key="safeArea" id="Ao7-OV-3iM"/>
  61. <connections>
  62. <outlet property="caption" destination="edK-06-YkL" id="Ncj-lt-KSN"/>
  63. <outlet property="levelMaskView" destination="4vG-st-3Jr" id="vvA-iW-SPh"/>
  64. </connections>
  65. <point key="canvasLocation" x="352" y="-337.78110944527737"/>
  66. </view>
  67. </objects>
  68. <resources>
  69. <image name="battery" width="26" height="44"/>
  70. <image name="battery_mask" width="16" height="42"/>
  71. </resources>
  72. </document>