[iOS] Changed layout for downloader banner in landscape orientation

https://jira.mail.ru/browse/MAPSME-13663
This commit is contained in:
Alexander Boriskov 2020-04-14 17:34:21 +03:00 committed by Aleksey Belousov
parent 11ad3ee9fd
commit d685dc784a

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_0" orientation="landscape" appearance="light"/>
<device id="retina3_5" orientation="landscape" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
@ -18,14 +18,11 @@
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="200" height="103"/>
<rect key="frame" x="0.0" y="0.0" width="200" height="158"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="LUI-uL-qXa" userLabel="Icon">
<rect key="frame" x="16" y="19.5" width="9.5" height="24"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="Скажи международному роумингу гудбай!" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lnc-Lj-kiV" userLabel="Message">
<rect key="frame" x="33.5" y="10" width="150.5" height="43"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" text="Скажи международному роумингу гудбай!" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lnc-Lj-kiV" userLabel="Message">
<rect key="frame" x="16" y="79" width="168" height="29"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" white="0.0" alpha="0.87165560789999996" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
@ -34,7 +31,7 @@
</userDefinedRuntimeAttributes>
</label>
<button opaque="NO" contentMode="scaleToFill" verticalCompressionResistancePriority="751" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pol-d8-Kul" userLabel="Button">
<rect key="frame" x="16" y="65" width="168" height="28"/>
<rect key="frame" x="16" y="120" width="168" height="28"/>
<color key="backgroundColor" red="0.34136284719999999" green="0.10091145830000001" blue="0.55075412329999995" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="28" id="f1I-WT-YKE"/>
@ -58,23 +55,63 @@
<action selector="onButtonTap:" destination="-1" eventType="touchUpInside" id="e8S-SA-UoO"/>
</connections>
</button>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" verticalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="LUI-uL-qXa" userLabel="Icon">
<rect key="frame" x="75.5" y="19.5" width="49.5" height="49.5"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="40" id="HZr-eq-6JE"/>
<constraint firstAttribute="width" secondItem="LUI-uL-qXa" secondAttribute="height" multiplier="1:1" id="JWN-Uz-O9g"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="HZr-eq-6JE"/>
<exclude reference="JWN-Uz-O9g"/>
</mask>
</variation>
<variation key="heightClass=compact">
<mask key="constraints">
<include reference="HZr-eq-6JE"/>
<include reference="JWN-Uz-O9g"/>
</mask>
</variation>
</imageView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="lnc-Lj-kiV" firstAttribute="leading" secondItem="LUI-uL-qXa" secondAttribute="trailing" constant="8" id="20Q-Z8-aux"/>
<constraint firstItem="LUI-uL-qXa" firstAttribute="centerX" secondItem="fnl-2z-Ty3" secondAttribute="centerX" id="Dbe-eN-cUG"/>
<constraint firstAttribute="leading" secondItem="LUI-uL-qXa" secondAttribute="leading" constant="-16" id="HRA-cj-9jo"/>
<constraint firstItem="pol-d8-Kul" firstAttribute="top" secondItem="lnc-Lj-kiV" secondAttribute="bottom" constant="12" id="KeN-qf-VmB"/>
<constraint firstItem="lnc-Lj-kiV" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="10" id="NtB-3i-Yil"/>
<constraint firstItem="LUI-uL-qXa" firstAttribute="centerY" secondItem="lnc-Lj-kiV" secondAttribute="centerY" id="SDm-lH-kkw"/>
<constraint firstItem="LUI-uL-qXa" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" constant="19.5" id="ToA-UO-ebo"/>
<constraint firstAttribute="trailing" secondItem="lnc-Lj-kiV" secondAttribute="trailing" constant="16" id="VHQ-vi-3kA"/>
<constraint firstItem="lnc-Lj-kiV" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="16" id="bp6-Dz-2PK"/>
<constraint firstAttribute="bottom" secondItem="pol-d8-Kul" secondAttribute="bottom" constant="10" id="gLK-GX-h2s"/>
<constraint firstItem="lnc-Lj-kiV" firstAttribute="top" secondItem="LUI-uL-qXa" secondAttribute="bottom" constant="10" id="hP5-fx-L58"/>
<constraint firstAttribute="trailing" secondItem="pol-d8-Kul" secondAttribute="trailing" constant="16" id="rpZ-kT-rIj"/>
<constraint firstAttribute="leading" secondItem="pol-d8-Kul" secondAttribute="leading" constant="-16" id="tMm-rQ-ee1"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="28.985507246376812" y="68.638392857142847"/>
<variation key="default">
<mask key="constraints">
<exclude reference="bp6-Dz-2PK"/>
<exclude reference="hP5-fx-L58"/>
<exclude reference="Dbe-eN-cUG"/>
</mask>
</variation>
<variation key="heightClass=compact">
<mask key="constraints">
<exclude reference="20Q-Z8-aux"/>
<exclude reference="NtB-3i-Yil"/>
<include reference="bp6-Dz-2PK"/>
<include reference="hP5-fx-L58"/>
<include reference="Dbe-eN-cUG"/>
<exclude reference="HRA-cj-9jo"/>
<exclude reference="SDm-lH-kkw"/>
</mask>
</variation>
<point key="canvasLocation" x="28.532608695652176" y="107.24637681159422"/>
</view>
</objects>
</document>