DateSegmentView.xib 15.8 KB
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19529" 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="19519"/>
        <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" customClass="DateSegmentView" customModule="Twear" customModuleProvider="target">
            <connections>
                <outlet property="dateLabel" destination="jaz-5T-GXV" id="pdV-Qq-UqA"/>
                <outlet property="dateTypeView" destination="8zf-oS-VDo" id="rYT-d2-EXj"/>
                <outlet property="dayButton" destination="89f-kR-G9P" id="tq6-4f-mDg"/>
                <outlet property="dayLayout" destination="jiE-Dt-tdY" id="V5M-D2-IzG"/>
                <outlet property="monthButton" destination="EgZ-1y-pDc" id="ydS-zM-G0c"/>
                <outlet property="weekButton" destination="2j1-sL-YHL" id="izW-Yp-SyE"/>
                <outlet property="yearButton" destination="ok5-UI-p9Y" id="nLI-cA-Kvp"/>
            </connections>
        </placeholder>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <view contentMode="scaleToFill" id="iN0-l3-epB">
            <rect key="frame" x="0.0" y="0.0" width="439" height="131"/>
            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
            <subviews>
                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8zf-oS-VDo">
                    <rect key="frame" x="0.0" y="0.0" width="439" height="40"/>
                    <subviews>
                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="89f-kR-G9P">
                            <rect key="frame" x="0.0" y="0.0" width="110" height="40"/>
                            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="16"/>
                            <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
                            <state key="normal" title="日">
                                <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            </state>
                            <connections>
                                <action selector="selectedDate:" destination="-1" eventType="touchUpInside" id="QzQ-KB-bhh"/>
                            </connections>
                        </button>
                        <button opaque="NO" tag="2" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="EgZ-1y-pDc">
                            <rect key="frame" x="219.5" y="0.0" width="110" height="40"/>
                            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="16"/>
                            <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
                            <state key="normal" title="月">
                                <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            </state>
                            <connections>
                                <action selector="selectedDate:" destination="-1" eventType="touchUpInside" id="cQG-Ek-0oy"/>
                            </connections>
                        </button>
                        <button opaque="NO" tag="3" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ok5-UI-p9Y">
                            <rect key="frame" x="329.5" y="0.0" width="109.5" height="40"/>
                            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="16"/>
                            <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
                            <state key="normal" title="年">
                                <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            </state>
                            <connections>
                                <action selector="selectedDate:" destination="-1" eventType="touchUpInside" id="BON-yW-ghT"/>
                            </connections>
                        </button>
                        <button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2j1-sL-YHL">
                            <rect key="frame" x="110" y="0.0" width="109.5" height="40"/>
                            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="16"/>
                            <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
                            <state key="normal" title="周">
                                <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            </state>
                            <connections>
                                <action selector="selectedDate:" destination="-1" eventType="touchUpInside" id="Tba-aU-6nK"/>
                            </connections>
                        </button>
                    </subviews>
                    <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                    <constraints>
                        <constraint firstAttribute="height" constant="40" id="0dJ-Ev-CJi"/>
                        <constraint firstItem="ok5-UI-p9Y" firstAttribute="leading" secondItem="EgZ-1y-pDc" secondAttribute="trailing" id="3Oi-qX-bOu"/>
                        <constraint firstItem="89f-kR-G9P" firstAttribute="leading" secondItem="8zf-oS-VDo" secondAttribute="leading" id="4ur-31-lQN"/>
                        <constraint firstAttribute="bottom" secondItem="EgZ-1y-pDc" secondAttribute="bottom" id="Gkf-bI-4ol"/>
                        <constraint firstItem="EgZ-1y-pDc" firstAttribute="leading" secondItem="2j1-sL-YHL" secondAttribute="trailing" id="IWm-em-F6i"/>
                        <constraint firstAttribute="trailing" secondItem="ok5-UI-p9Y" secondAttribute="trailing" id="RY0-ha-ecj"/>
                        <constraint firstItem="ok5-UI-p9Y" firstAttribute="width" secondItem="EgZ-1y-pDc" secondAttribute="width" id="T6F-sg-XS4"/>
                        <constraint firstItem="ok5-UI-p9Y" firstAttribute="width" secondItem="2j1-sL-YHL" secondAttribute="width" id="ToB-ru-5HA"/>
                        <constraint firstAttribute="bottom" secondItem="2j1-sL-YHL" secondAttribute="bottom" id="Uid-cN-dRb"/>
                        <constraint firstAttribute="bottom" secondItem="89f-kR-G9P" secondAttribute="bottom" id="WgX-J3-sdK"/>
                        <constraint firstItem="89f-kR-G9P" firstAttribute="top" secondItem="8zf-oS-VDo" secondAttribute="top" id="aeD-g5-PDS"/>
                        <constraint firstItem="ok5-UI-p9Y" firstAttribute="top" secondItem="8zf-oS-VDo" secondAttribute="top" id="b2W-Vh-yVn"/>
                        <constraint firstItem="2j1-sL-YHL" firstAttribute="leading" secondItem="89f-kR-G9P" secondAttribute="trailing" id="cUm-Qv-djm"/>
                        <constraint firstItem="ok5-UI-p9Y" firstAttribute="width" secondItem="89f-kR-G9P" secondAttribute="width" id="jiE-Dt-tdY"/>
                        <constraint firstAttribute="bottom" secondItem="ok5-UI-p9Y" secondAttribute="bottom" id="kya-8I-STw"/>
                        <constraint firstItem="EgZ-1y-pDc" firstAttribute="top" secondItem="8zf-oS-VDo" secondAttribute="top" id="lzL-Ey-qsb"/>
                        <constraint firstItem="2j1-sL-YHL" firstAttribute="top" secondItem="8zf-oS-VDo" secondAttribute="top" id="zy5-gs-xVu"/>
                    </constraints>
                    <userDefinedRuntimeAttributes>
                        <userDefinedRuntimeAttribute type="color" keyPath="layer.shadowUIColor">
                            <color key="value" white="0.0" alpha="0.95999999999999996" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                        </userDefinedRuntimeAttribute>
                        <userDefinedRuntimeAttribute type="number" keyPath="layer.shadowOpacity">
                            <real key="value" value="0.5"/>
                        </userDefinedRuntimeAttribute>
                        <userDefinedRuntimeAttribute type="number" keyPath="layer.shadowRadius">
                            <real key="value" value="0.5"/>
                        </userDefinedRuntimeAttribute>
                        <userDefinedRuntimeAttribute type="size" keyPath="layer.shadowOffset">
                            <size key="value" width="0.0" height="0.5"/>
                        </userDefinedRuntimeAttribute>
                        <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
                            <integer key="value" value="10"/>
                        </userDefinedRuntimeAttribute>
                    </userDefinedRuntimeAttributes>
                </view>
                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="At2-mP-oYf">
                    <rect key="frame" x="51" y="42" width="40" height="38"/>
                    <constraints>
                        <constraint firstAttribute="height" constant="38" id="hkk-OG-D6p"/>
                        <constraint firstAttribute="width" constant="40" id="xMj-Xk-DTd"/>
                    </constraints>
                    <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
                    <state key="normal" image="date_left"/>
                    <connections>
                        <action selector="clickLeftButton:" destination="-1" eventType="touchUpInside" id="rAR-WN-U0v"/>
                    </connections>
                </button>
                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Rc0-If-EKH">
                    <rect key="frame" x="348" y="42" width="40" height="38"/>
                    <constraints>
                        <constraint firstAttribute="width" constant="40" id="8o4-jk-okQ"/>
                        <constraint firstAttribute="height" constant="38" id="h83-kV-MXX"/>
                    </constraints>
                    <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
                    <state key="normal" image="date_right"/>
                    <connections>
                        <action selector="clickRightButton:" destination="-1" eventType="touchUpInside" id="HAY-61-p9u"/>
                    </connections>
                </button>
                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2021.11.09-2021.11.14" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jaz-5T-GXV">
                    <rect key="frame" x="140.5" y="50" width="158" height="22.5"/>
                    <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="16"/>
                    <nil key="textColor"/>
                    <nil key="highlightedColor"/>
                </label>
            </subviews>
            <viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
            <constraints>
                <constraint firstItem="Rc0-If-EKH" firstAttribute="centerY" secondItem="At2-mP-oYf" secondAttribute="centerY" id="6cg-XG-9Je"/>
                <constraint firstItem="At2-mP-oYf" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" multiplier="0.25" constant="16" id="7PE-HV-86O"/>
                <constraint firstItem="jaz-5T-GXV" firstAttribute="centerY" secondItem="At2-mP-oYf" secondAttribute="centerY" id="Cz3-Jf-5Hy"/>
                <constraint firstItem="8zf-oS-VDo" firstAttribute="trailing" secondItem="vUN-kp-3ea" secondAttribute="trailing" id="Dnk-Pe-Odo"/>
                <constraint firstItem="Rc0-If-EKH" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" multiplier="1.75" constant="-16" id="ERS-Oh-B0s"/>
                <constraint firstItem="jaz-5T-GXV" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="At2-mP-oYf" secondAttribute="trailing" id="NqH-mf-Jlq"/>
                <constraint firstItem="At2-mP-oYf" firstAttribute="top" secondItem="8zf-oS-VDo" secondAttribute="bottom" constant="2" id="QWb-1C-JaJ"/>
                <constraint firstItem="8zf-oS-VDo" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="SEI-mP-UfR"/>
                <constraint firstItem="Rc0-If-EKH" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="jaz-5T-GXV" secondAttribute="trailing" id="TFK-Ab-UhS"/>
                <constraint firstItem="8zf-oS-VDo" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="XUp-Q6-g3u"/>
                <constraint firstItem="jaz-5T-GXV" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="aNd-AD-hTI"/>
            </constraints>
            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
            <point key="canvasLocation" x="164.49275362318841" y="-254.12946428571428"/>
        </view>
    </objects>
    <resources>
        <image name="date_left" width="13" height="13"/>
        <image name="date_right" width="13" height="13"/>
        <systemColor name="systemBackgroundColor">
            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
        </systemColor>
    </resources>
</document>