Adjust constraints in UserSettingsTableViewCell.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Ivan Sein 2023-04-13 22:57:50 +02:00
Родитель 0776e4870b
Коммит 5d32fcb488
2 изменённых файлов: 10 добавлений и 22 удалений

Просмотреть файл

@ -26,7 +26,6 @@ class UserSettingsTableViewCell: UITableViewCell {
@IBOutlet weak var userImageView: UIImageView! @IBOutlet weak var userImageView: UIImageView!
@IBOutlet weak var userDisplayNameLabel: UILabel! @IBOutlet weak var userDisplayNameLabel: UILabel!
@IBOutlet weak var userStatusImageView: UIImageView!
@IBOutlet weak var serverAddressLabel: UILabel! @IBOutlet weak var serverAddressLabel: UILabel!
override func awakeFromNib() { override func awakeFromNib() {

Просмотреть файл

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <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="retina4_7" orientation="portrait" appearance="dark"/> <device id="retina4_7" orientation="portrait" appearance="dark"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21678"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
@ -26,28 +26,19 @@
<constraint firstAttribute="width" constant="80" id="TBG-Ma-s6F"/> <constraint firstAttribute="width" constant="80" id="TBG-Ma-s6F"/>
</constraints> </constraints>
</imageView> </imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Sku-VD-NUe"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" minimumFontSize="14" translatesAutoresizingMaskIntoConstraints="NO" id="Swb-9J-rh9">
<rect key="frame" x="76" y="70" width="28" height="28"/>
<constraints>
<constraint firstAttribute="width" constant="28" id="252-6p-aYI"/>
<constraint firstAttribute="height" constant="28" id="BT6-Qf-Adv"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="12" translatesAutoresizingMaskIntoConstraints="NO" id="Swb-9J-rh9">
<rect key="frame" x="112" y="20" width="196" height="40"/> <rect key="frame" x="112" y="20" width="196" height="40"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="40" id="deO-fb-3oZ"/> <constraint firstAttribute="height" constant="40" id="deO-fb-3oZ"/>
<constraint firstAttribute="width" relation="greaterThanOrEqual" id="gey-bS-j5V"/>
</constraints> </constraints>
<fontDescription key="fontDescription" type="system" pointSize="26"/> <fontDescription key="fontDescription" type="system" pointSize="26"/>
<nil key="textColor"/> <nil key="textColor"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="6" translatesAutoresizingMaskIntoConstraints="NO" id="HV6-ub-cLt"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="HV6-ub-cLt">
<rect key="frame" x="112" y="60" width="196" height="20"/> <rect key="frame" x="112" y="60" width="196" height="20"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="20" id="G67-zI-feR"/> <constraint firstAttribute="height" constant="20" id="G67-zI-feR"/>
<constraint firstAttribute="width" relation="greaterThanOrEqual" id="doE-yI-CQt"/>
</constraints> </constraints>
<fontDescription key="fontDescription" type="system" pointSize="12"/> <fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" systemColor="secondaryLabelColor"/> <color key="textColor" systemColor="secondaryLabelColor"/>
@ -57,15 +48,14 @@
<viewLayoutGuide key="safeArea" id="16D-xc-wjn"/> <viewLayoutGuide key="safeArea" id="16D-xc-wjn"/>
<constraints> <constraints>
<constraint firstItem="Swb-9J-rh9" firstAttribute="leading" secondItem="qPz-Ql-jNV" secondAttribute="trailing" constant="16" id="335-x5-qrU"/> <constraint firstItem="Swb-9J-rh9" firstAttribute="leading" secondItem="qPz-Ql-jNV" secondAttribute="trailing" constant="16" id="335-x5-qrU"/>
<constraint firstItem="qPz-Ql-jNV" firstAttribute="top" secondItem="16D-xc-wjn" secondAttribute="top" constant="10" id="7iM-vf-Cq5"/> <constraint firstItem="qPz-Ql-jNV" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="10" id="7iM-vf-Cq5"/>
<constraint firstItem="Sku-VD-NUe" firstAttribute="leading" secondItem="16D-xc-wjn" secondAttribute="leading" constant="76" id="8wK-BY-zhg"/> <constraint firstItem="HV6-ub-cLt" firstAttribute="trailing" secondItem="H2p-sc-9uM" secondAttribute="trailing" constant="-12" id="9Q4-qB-myb"/>
<constraint firstItem="16D-xc-wjn" firstAttribute="trailing" secondItem="HV6-ub-cLt" secondAttribute="trailing" constant="12" id="9Q4-qB-myb"/> <constraint firstItem="qPz-Ql-jNV" firstAttribute="bottom" secondItem="H2p-sc-9uM" secondAttribute="bottom" constant="-10" id="Lh5-B9-vGm"/>
<constraint firstItem="HV6-ub-cLt" firstAttribute="top" secondItem="Swb-9J-rh9" secondAttribute="bottom" id="ch9-n7-VFo"/> <constraint firstItem="HV6-ub-cLt" firstAttribute="top" secondItem="Swb-9J-rh9" secondAttribute="bottom" id="ch9-n7-VFo"/>
<constraint firstItem="Swb-9J-rh9" firstAttribute="top" secondItem="16D-xc-wjn" secondAttribute="top" constant="20" id="dVc-WW-RKs"/> <constraint firstItem="Swb-9J-rh9" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="20" id="dVc-WW-RKs"/>
<constraint firstItem="HV6-ub-cLt" firstAttribute="leading" secondItem="qPz-Ql-jNV" secondAttribute="trailing" constant="16" id="gPJ-i6-5yz"/> <constraint firstItem="HV6-ub-cLt" firstAttribute="leading" secondItem="qPz-Ql-jNV" secondAttribute="trailing" constant="16" id="gPJ-i6-5yz"/>
<constraint firstItem="16D-xc-wjn" firstAttribute="trailing" secondItem="Swb-9J-rh9" secondAttribute="trailing" constant="12" id="iNd-rN-aEd"/> <constraint firstItem="Swb-9J-rh9" firstAttribute="trailing" secondItem="H2p-sc-9uM" secondAttribute="trailing" constant="-12" id="iNd-rN-aEd"/>
<constraint firstItem="qPz-Ql-jNV" firstAttribute="leading" secondItem="16D-xc-wjn" secondAttribute="leading" constant="16" id="jEA-aR-uii"/> <constraint firstItem="qPz-Ql-jNV" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="jEA-aR-uii"/>
<constraint firstItem="Sku-VD-NUe" firstAttribute="top" secondItem="16D-xc-wjn" secondAttribute="top" constant="70" id="vyK-eV-loZ"/>
</constraints> </constraints>
</tableViewCellContentView> </tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="aW0-zy-SZf"/> <viewLayoutGuide key="safeArea" id="aW0-zy-SZf"/>
@ -73,7 +63,6 @@
<outlet property="serverAddressLabel" destination="HV6-ub-cLt" id="ZMf-EM-YKg"/> <outlet property="serverAddressLabel" destination="HV6-ub-cLt" id="ZMf-EM-YKg"/>
<outlet property="userDisplayNameLabel" destination="Swb-9J-rh9" id="X2G-cu-ALr"/> <outlet property="userDisplayNameLabel" destination="Swb-9J-rh9" id="X2G-cu-ALr"/>
<outlet property="userImageView" destination="qPz-Ql-jNV" id="pfb-xJ-i3d"/> <outlet property="userImageView" destination="qPz-Ql-jNV" id="pfb-xJ-i3d"/>
<outlet property="userStatusImageView" destination="Sku-VD-NUe" id="8VG-Bf-SRD"/>
</connections> </connections>
<point key="canvasLocation" x="139" y="155"/> <point key="canvasLocation" x="139" y="155"/>
</tableViewCell> </tableViewCell>