Skip to content

Commit 04c0ca7

Browse files
committed
Improved landscape mode.
1 parent 057552c commit 04c0ca7

5 files changed

Lines changed: 27 additions & 21 deletions

File tree

OpenDocumentReader/Assets.xcassets/launch_image.imageset/Contents.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
{
1616
"idiom" : "iphone",
17-
"filename" : "launch_image-2.png",
17+
"filename" : "launch_image.png",
1818
"scale" : "1x"
1919
},
2020
{
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"idiom" : "iphone",
27-
"filename" : "launch_image.png",
27+
"filename" : "launch_image-2.png",
2828
"scale" : "3x"
2929
}
3030
],
1012 Bytes
Loading
1012 Bytes
Loading
1012 Bytes
Loading
Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3-
<device id="retina6_1" orientation="portrait" appearance="light"/>
3+
<device id="retina6_5" orientation="portrait" appearance="light"/>
44
<dependencies>
55
<deployment identifier="iOS"/>
66
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15510"/>
@@ -16,26 +16,32 @@
1616
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
1717
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1818
<subviews>
19-
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="OpenDocument Reader" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="u4m-FI-Qck">
20-
<rect key="frame" x="78.5" y="437.5" width="257" height="31"/>
21-
<fontDescription key="fontDescription" name="Futura-Medium" family="Futura" pointSize="24"/>
22-
<color key="textColor" red="0.3624604344367981" green="0.36252501606941223" blue="0.36244666576385498" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
23-
<nil key="highlightedColor"/>
24-
</label>
25-
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch_image" translatesAutoresizingMaskIntoConstraints="NO" id="Zua-ki-lyJ">
26-
<rect key="frame" x="37" y="140" width="340" height="340"/>
27-
<constraints>
28-
<constraint firstAttribute="height" constant="340" id="g1s-aW-lqS"/>
29-
<constraint firstAttribute="width" constant="340" id="w7c-ro-PY1"/>
30-
</constraints>
31-
</imageView>
19+
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="4mC-lE-Fm1">
20+
<rect key="frame" x="52" y="319.33333333333326" width="310" height="267.66666666666674"/>
21+
<subviews>
22+
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch_image" translatesAutoresizingMaskIntoConstraints="NO" id="Zua-ki-lyJ">
23+
<rect key="frame" x="55" y="0.0" width="200" height="200"/>
24+
<constraints>
25+
<constraint firstAttribute="height" constant="200" id="jsI-Fh-zlX"/>
26+
<constraint firstAttribute="width" constant="200" id="maA-Wv-Yax"/>
27+
</constraints>
28+
</imageView>
29+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="OpenDocument Reader" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="u4m-FI-Qck">
30+
<rect key="frame" x="0.0" y="230.00000000000006" width="310" height="37.666666666666686"/>
31+
<fontDescription key="fontDescription" name="Futura-Medium" family="Futura" pointSize="29"/>
32+
<color key="textColor" red="0.3624604344367981" green="0.36252501606941223" blue="0.36244666576385498" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
33+
<nil key="highlightedColor"/>
34+
<variation key="heightClass=compact-widthClass=compact">
35+
<fontDescription key="fontDescription" name="Futura-Medium" family="Futura" pointSize="24"/>
36+
</variation>
37+
</label>
38+
</subviews>
39+
</stackView>
3240
</subviews>
3341
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3442
<constraints>
35-
<constraint firstItem="u4m-FI-Qck" firstAttribute="centerY" secondItem="6Tk-OE-BBY" secondAttribute="centerY" id="U9s-Ss-ZbS"/>
36-
<constraint firstItem="u4m-FI-Qck" firstAttribute="top" secondItem="Zua-ki-lyJ" secondAttribute="bottom" constant="-42.666664123535156" id="WT5-7v-hMx"/>
37-
<constraint firstItem="u4m-FI-Qck" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="nW3-dj-RzR"/>
38-
<constraint firstItem="Zua-ki-lyJ" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="oVL-Xs-Ldu"/>
43+
<constraint firstItem="4mC-lE-Fm1" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="RoO-Jr-aSF"/>
44+
<constraint firstItem="4mC-lE-Fm1" firstAttribute="centerY" secondItem="6Tk-OE-BBY" secondAttribute="centerY" id="mi6-O9-0b9"/>
3945
</constraints>
4046
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
4147
</view>
@@ -46,6 +52,6 @@
4652
</scene>
4753
</scenes>
4854
<resources>
49-
<image name="launch_image" width="216" height="216"/>
55+
<image name="launch_image" width="54.666667938232422" height="71.333335876464844"/>
5056
</resources>
5157
</document>

0 commit comments

Comments
 (0)