SleepReportCell.xib 18.7 KB
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19455" 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="19454"/>
        <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="SleepReportCell" customModule="Twear" customModuleProvider="target">
            <rect key="frame" x="0.0" y="0.0" width="400" height="295"/>
            <autoresizingMask key="autoresizingMask"/>
            <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
                <rect key="frame" x="0.0" y="0.0" width="400" height="295"/>
                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                <subviews>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="深睡" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MQj-fy-Wkg">
                        <rect key="frame" x="345" y="236" width="30" height="21"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
                        <color key="textColor" red="0.50196078430000002" green="0.50196078430000002" blue="0.50196078430000002" alpha="1" colorSpace="calibratedRGB"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="5000" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="E0P-cX-gbt">
                        <rect key="frame" x="328" y="252" width="60" height="35"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="25"/>
                        <nil key="textColor"/>
                        <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="X6C-Bt-uoo">
                        <rect key="frame" x="140.5" y="252" width="55.5" height="35"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="25"/>
                        <nil key="textColor"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="WF3-D9-gJw">
                        <rect key="frame" x="140" y="241.5" width="10" height="10"/>
                        <color key="backgroundColor" red="1" green="0.53333333333333333" blue="0.45882352941176469" alpha="1" colorSpace="calibratedRGB"/>
                        <constraints>
                            <constraint firstAttribute="width" constant="10" id="ChA-9E-FWd"/>
                            <constraint firstAttribute="height" constant="10" id="zia-7M-KEs"/>
                        </constraints>
                        <userDefinedRuntimeAttributes>
                            <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
                                <integer key="value" value="5"/>
                            </userDefinedRuntimeAttribute>
                        </userDefinedRuntimeAttributes>
                    </view>
                    <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dU0-xM-Dgz">
                        <rect key="frame" x="330" y="241.5" width="10" height="10"/>
                        <color key="backgroundColor" red="0.59215686274509804" green="0.20000000000000001" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                        <constraints>
                            <constraint firstAttribute="width" constant="10" id="7gK-o7-OpV"/>
                            <constraint firstAttribute="height" constant="10" id="xYG-O4-FdM"/>
                        </constraints>
                        <userDefinedRuntimeAttributes>
                            <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
                                <integer key="value" value="5"/>
                            </userDefinedRuntimeAttribute>
                        </userDefinedRuntimeAttributes>
                    </view>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="日均时长" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KvJ-hg-AMn">
                        <rect key="frame" x="6" y="236" width="60" height="21"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
                        <color key="textColor" red="0.50196078430000002" green="0.50196078430000002" blue="0.50196078430000002" alpha="1" colorSpace="calibratedRGB"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="5000" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zje-UF-wix">
                        <rect key="frame" x="6" y="252" width="60" height="35"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="25"/>
                        <nil key="textColor"/>
                        <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="xwt-pn-UTA">
                        <rect key="frame" x="250" y="236" width="30" height="21"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
                        <color key="textColor" red="0.50196078430000002" green="0.50196078430000002" blue="0.50196078430000002" 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="nML-ID-9WV">
                        <rect key="frame" x="235.5" y="252" width="55.5" height="35"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="25"/>
                        <nil key="textColor"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xHU-D2-zgo">
                        <rect key="frame" x="235" y="241.5" width="10" height="10"/>
                        <color key="backgroundColor" red="0.84313725490196079" green="0.25882352941176467" blue="0.76862745098039209" alpha="1" colorSpace="calibratedRGB"/>
                        <constraints>
                            <constraint firstAttribute="width" constant="10" id="PQi-tS-Tiu"/>
                            <constraint firstAttribute="height" constant="10" id="ejO-58-zCQ"/>
                        </constraints>
                        <userDefinedRuntimeAttributes>
                            <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
                                <integer key="value" value="5"/>
                            </userDefinedRuntimeAttribute>
                        </userDefinedRuntimeAttributes>
                    </view>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="睡眠" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Tmw-eU-Rjp">
                        <rect key="frame" x="15" y="16" width="30" height="21"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="15"/>
                        <nil key="textColor"/>
                        <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="KAq-ev-Fm5">
                        <rect key="frame" x="155" y="236" width="30" height="21"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
                        <color key="textColor" red="0.50196078430000002" green="0.50196078430000002" blue="0.50196078430000002" alpha="1" colorSpace="calibratedRGB"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2021.12.11" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XkO-0V-fbI">
                        <rect key="frame" x="335" y="18.5" width="50" height="16"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
                        <color key="textColor" red="0.50196078430000002" green="0.50196078430000002" blue="0.50196078430000002" alpha="1" colorSpace="calibratedRGB"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bY9-aV-9qN" customClass="BarChartView" customModule="Charts">
                        <rect key="frame" x="0.0" y="44" width="400" height="180"/>
                        <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                    </view>
                </subviews>
            </view>
            <viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
            <constraints>
                <constraint firstItem="xwt-pn-UTA" firstAttribute="leading" secondItem="xHU-D2-zgo" secondAttribute="trailing" constant="5" id="1Xw-BM-636"/>
                <constraint firstItem="KAq-ev-Fm5" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" multiplier="0.85" id="3zT-xH-UvV"/>
                <constraint firstItem="xwt-pn-UTA" firstAttribute="centerY" secondItem="xHU-D2-zgo" secondAttribute="centerY" id="3zf-9V-tGR"/>
                <constraint firstItem="bY9-aV-9qN" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="4dT-I5-KDm"/>
                <constraint firstAttribute="trailing" secondItem="bY9-aV-9qN" secondAttribute="trailing" id="8AP-SH-tPo"/>
                <constraint firstItem="KAq-ev-Fm5" firstAttribute="centerY" secondItem="KvJ-hg-AMn" secondAttribute="centerY" id="8jZ-aa-nFq"/>
                <constraint firstItem="X6C-Bt-uoo" firstAttribute="centerY" secondItem="zje-UF-wix" secondAttribute="centerY" id="Co7-Om-0nX"/>
                <constraint firstItem="XkO-0V-fbI" firstAttribute="centerY" secondItem="Tmw-eU-Rjp" secondAttribute="centerY" id="DTQ-fX-NSj"/>
                <constraint firstItem="MQj-fy-Wkg" firstAttribute="centerY" secondItem="KAq-ev-Fm5" secondAttribute="centerY" id="GFI-Zd-aGP"/>
                <constraint firstItem="E0P-cX-gbt" firstAttribute="centerX" secondItem="MQj-fy-Wkg" secondAttribute="centerX" constant="-2" id="IeO-ct-GHn"/>
                <constraint firstItem="zje-UF-wix" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="6" id="NSl-e8-nqq"/>
                <constraint firstItem="nML-ID-9WV" firstAttribute="centerX" secondItem="xwt-pn-UTA" secondAttribute="centerX" constant="-2" id="NVb-Og-ndg"/>
                <constraint firstItem="xwt-pn-UTA" firstAttribute="centerY" secondItem="KvJ-hg-AMn" secondAttribute="centerY" id="Tae-x8-qdk"/>
                <constraint firstAttribute="bottom" secondItem="KAq-ev-Fm5" secondAttribute="bottom" constant="38" id="U4c-3i-EAe"/>
                <constraint firstItem="KAq-ev-Fm5" firstAttribute="centerY" secondItem="WF3-D9-gJw" secondAttribute="centerY" id="Up2-oX-VxU"/>
                <constraint firstItem="xwt-pn-UTA" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" multiplier="1.325" id="UyF-p1-oce"/>
                <constraint firstItem="Tmw-eU-Rjp" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="15" id="VUs-Nl-gMe"/>
                <constraint firstItem="MQj-fy-Wkg" firstAttribute="leading" secondItem="dU0-xM-Dgz" secondAttribute="trailing" constant="5" id="Vpw-dq-ebu"/>
                <constraint firstItem="X6C-Bt-uoo" firstAttribute="centerX" secondItem="KAq-ev-Fm5" secondAttribute="centerX" constant="-2" id="W6B-CI-lH1"/>
                <constraint firstItem="dU0-xM-Dgz" firstAttribute="centerY" secondItem="WF3-D9-gJw" secondAttribute="centerY" id="WKT-RV-2Dn"/>
                <constraint firstItem="KAq-ev-Fm5" firstAttribute="leading" secondItem="WF3-D9-gJw" secondAttribute="trailing" constant="5" id="Xdf-Mh-YhK"/>
                <constraint firstItem="xHU-D2-zgo" firstAttribute="centerY" secondItem="KvJ-hg-AMn" secondAttribute="centerY" id="Yj1-kO-JzM"/>
                <constraint firstItem="E0P-cX-gbt" firstAttribute="centerY" secondItem="X6C-Bt-uoo" secondAttribute="centerY" id="b4G-SE-alt"/>
                <constraint firstItem="zje-UF-wix" firstAttribute="centerX" secondItem="KvJ-hg-AMn" secondAttribute="centerX" id="bKJ-Zf-zGY"/>
                <constraint firstAttribute="bottom" secondItem="X6C-Bt-uoo" secondAttribute="bottom" constant="8" id="bP8-v4-0Kt"/>
                <constraint firstItem="bY9-aV-9qN" firstAttribute="top" secondItem="Tmw-eU-Rjp" secondAttribute="bottom" constant="7" id="ca6-eP-fdT"/>
                <constraint firstItem="KvJ-hg-AMn" firstAttribute="top" secondItem="bY9-aV-9qN" secondAttribute="bottom" constant="12" id="kcp-iC-l4i"/>
                <constraint firstAttribute="trailing" secondItem="XkO-0V-fbI" secondAttribute="trailing" constant="15" id="snU-s9-v4X"/>
                <constraint firstItem="Tmw-eU-Rjp" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" constant="16" id="tXw-f0-MNa"/>
                <constraint firstItem="MQj-fy-Wkg" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" multiplier="1.8" id="w5V-vn-438"/>
                <constraint firstItem="nML-ID-9WV" firstAttribute="centerY" secondItem="zje-UF-wix" secondAttribute="centerY" id="wdx-hi-Wgs"/>
            </constraints>
            <size key="customSize" width="400" height="295"/>
            <userDefinedRuntimeAttributes>
                <userDefinedRuntimeAttribute type="color" keyPath="layer.borderUIColor">
                    <color key="value" red="0.80000000000000004" green="0.80000000000000004" blue="0.80000000000000004" alpha="1" colorSpace="calibratedRGB"/>
                </userDefinedRuntimeAttribute>
                <userDefinedRuntimeAttribute type="number" keyPath="layer.borderWidth">
                    <integer key="value" value="1"/>
                </userDefinedRuntimeAttribute>
                <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
                    <integer key="value" value="10"/>
                </userDefinedRuntimeAttribute>
            </userDefinedRuntimeAttributes>
            <connections>
                <outlet property="awakeLabel" destination="X6C-Bt-uoo" id="9eC-bd-0u4"/>
                <outlet property="barChartView" destination="bY9-aV-9qN" id="fYb-9O-mwh"/>
                <outlet property="dateLabel" destination="XkO-0V-fbI" id="FM4-32-eF5"/>
                <outlet property="deepLabel" destination="E0P-cX-gbt" id="jLP-HN-76Z"/>
                <outlet property="lengthLabel" destination="zje-UF-wix" id="caR-Fx-ToW"/>
                <outlet property="lightLabel" destination="nML-ID-9WV" id="Ron-AP-vAf"/>
            </connections>
            <point key="canvasLocation" x="391.304347826087" y="137.61160714285714"/>
        </collectionViewCell>
    </objects>
    <resources>
        <systemColor name="systemBackgroundColor">
            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
        </systemColor>
    </resources>
</document>