HeartRateCell.xib 10.5 KB
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
    <device id="retina6_1" orientation="portrait" appearance="light"/>
    <dependencies>
        <deployment identifier="iOS"/>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21678"/>
        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
        <capability name="System colors in document resources" minToolsVersion="11.0"/>
        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
    </dependencies>
    <objects>
        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="HeartRateCell" customModule="HDFwear" customModuleProvider="target">
            <rect key="frame" x="0.0" y="0.0" width="212" height="193"/>
            <autoresizingMask key="autoresizingMask"/>
            <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
                <rect key="frame" x="0.0" y="0.0" width="212" height="193"/>
                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                <subviews>
                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_hr" translatesAutoresizingMaskIntoConstraints="NO" id="OJe-Dh-UUh">
                        <rect key="frame" x="10" y="10" width="22" height="22"/>
                        <constraints>
                            <constraint firstAttribute="height" constant="22" id="JJ9-zu-7Wr"/>
                            <constraint firstAttribute="width" constant="22" id="c2E-KT-pCY"/>
                        </constraints>
                    </imageView>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="c5e-fr-3Gp">
                        <rect key="frame" x="42" y="11.5" width="165" height="19"/>
                        <attributedString key="attributedText">
                            <fragment content="心率">
                                <attributes>
                                    <font key="NSFont" size="16" name="PingFangSC-Medium"/>
                                    <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" maximumLineHeight="19" tighteningFactorForTruncation="0.0"/>
                                </attributes>
                            </fragment>
                        </attributedString>
                        <nil key="highlightedColor"/>
                    </label>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WUF-mq-gOi">
                        <rect key="frame" x="10" y="42" width="30.5" height="35"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="25"/>
                        <nil key="textColor"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_hr_nodata" translatesAutoresizingMaskIntoConstraints="NO" id="dfD-jF-iaE">
                        <rect key="frame" x="7.5" y="108.5" width="194.5" height="45.5"/>
                    </imageView>
                    <view userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="a57-GO-k1u" customClass="LineChartView" customModule="Charts">
                        <rect key="frame" x="3" y="82" width="204" height="110"/>
                        <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                    </view>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="暂无数据" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QI1-pd-SMo">
                        <rect key="frame" x="78" y="86.5" width="56" height="20"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="14"/>
                        <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fvN-aC-WXg">
                        <rect key="frame" x="183" y="11" width="17" height="20"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="14"/>
                        <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
                        <nil key="highlightedColor"/>
                    </label>
                </subviews>
            </view>
            <viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
            <constraints>
                <constraint firstAttribute="trailing" secondItem="fvN-aC-WXg" secondAttribute="trailing" constant="12" id="0uQ-GW-Vjr"/>
                <constraint firstItem="dfD-jF-iaE" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="7.5" id="87k-oc-acB"/>
                <constraint firstAttribute="bottom" secondItem="a57-GO-k1u" secondAttribute="bottom" constant="1" id="9dm-iF-42n"/>
                <constraint firstAttribute="bottom" secondItem="dfD-jF-iaE" secondAttribute="bottom" constant="39" id="CDK-bH-abz"/>
                <constraint firstItem="c5e-fr-3Gp" firstAttribute="centerY" secondItem="OJe-Dh-UUh" secondAttribute="centerY" id="Cjg-I2-feb"/>
                <constraint firstItem="c5e-fr-3Gp" firstAttribute="leading" secondItem="OJe-Dh-UUh" secondAttribute="trailing" constant="10" id="Ehb-D7-hb7"/>
                <constraint firstItem="WUF-mq-gOi" firstAttribute="top" secondItem="OJe-Dh-UUh" secondAttribute="bottom" constant="10" id="HNZ-Tn-j5V"/>
                <constraint firstItem="QI1-pd-SMo" firstAttribute="centerY" secondItem="gTV-IL-0wX" secondAttribute="centerY" id="JdZ-dF-jTF"/>
                <constraint firstAttribute="trailing" secondItem="c5e-fr-3Gp" secondAttribute="trailing" constant="5" id="PJ3-JB-pYg"/>
                <constraint firstAttribute="trailing" secondItem="a57-GO-k1u" secondAttribute="trailing" constant="5" id="dKZ-03-Kmj"/>
                <constraint firstItem="WUF-mq-gOi" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="10" id="dZ9-J6-XxA"/>
                <constraint firstItem="OJe-Dh-UUh" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="10" id="ehI-QV-OBd"/>
                <constraint firstItem="a57-GO-k1u" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="3" id="ez8-pb-zxS"/>
                <constraint firstItem="a57-GO-k1u" firstAttribute="top" secondItem="WUF-mq-gOi" secondAttribute="bottom" constant="5" id="ohs-E0-Nrt"/>
                <constraint firstItem="fvN-aC-WXg" firstAttribute="centerY" secondItem="c5e-fr-3Gp" secondAttribute="centerY" id="rI9-TT-kvO"/>
                <constraint firstItem="QI1-pd-SMo" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="s0L-E6-Hpo"/>
                <constraint firstItem="OJe-Dh-UUh" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" constant="10" id="uA2-Ow-pFg"/>
                <constraint firstAttribute="trailing" secondItem="dfD-jF-iaE" secondAttribute="trailing" constant="10" id="uoy-jR-jcC"/>
            </constraints>
            <size key="customSize" width="212" height="193"/>
            <userDefinedRuntimeAttributes>
                <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
                    <integer key="value" value="10"/>
                </userDefinedRuntimeAttribute>
            </userDefinedRuntimeAttributes>
            <connections>
                <outlet property="dateLabel" destination="fvN-aC-WXg" id="NgN-ig-cUe"/>
                <outlet property="hrValueLabel" destination="WUF-mq-gOi" id="DJ5-Xe-t09"/>
                <outlet property="lineChartView" destination="a57-GO-k1u" id="9hy-2F-cmf"/>
                <outlet property="noDataImageView" destination="dfD-jF-iaE" id="CYa-Xz-TS7"/>
                <outlet property="noDataLabel" destination="QI1-pd-SMo" id="YrR-ia-sjL"/>
                <outlet property="titleLabel" destination="c5e-fr-3Gp" id="rUI-mH-QWE"/>
            </connections>
            <point key="canvasLocation" x="255.07246376811597" y="151.67410714285714"/>
        </collectionViewCell>
    </objects>
    <resources>
        <image name="home_hr" width="23.5" height="24"/>
        <image name="home_hr_nodata" width="152.5" height="45.5"/>
        <systemColor name="systemBackgroundColor">
            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
        </systemColor>
    </resources>
</document>