Skip to content

Commit e0918f8

Browse files
committed
Move the swipe gestures away from the top and bottom edges
Fixes #13
1 parent e6c9bba commit e0918f8

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

Cooldown/Base.lproj/Main.storyboard

Lines changed: 23 additions & 15 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="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="xMa-aJ-Mmm">
3-
<device id="retina4_7" orientation="portrait">
3+
<device id="retina6_1" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
@@ -14,19 +14,27 @@
1414
<objects>
1515
<viewController id="xMa-aJ-Mmm" customClass="ViewController" customModule="Cooldown" customModuleProvider="target" sceneMemberID="viewController">
1616
<view key="view" contentMode="scaleToFill" id="Axt-hh-Z9l">
17-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
1818
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1919
<subviews>
2020
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="---" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fwk-yr-LrD">
21-
<rect key="frame" x="16" y="20" width="343" height="611"/>
21+
<rect key="frame" x="20" y="44" width="374" height="782"/>
2222
<fontDescription key="fontDescription" type="system" weight="light" pointSize="120"/>
2323
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
2424
<nil key="highlightedColor"/>
2525
<color key="shadowColor" white="0.0" alpha="0.14999999999999999" colorSpace="calibratedWhite"/>
2626
<size key="shadowOffset" width="-2" height="2"/>
2727
</label>
28+
<view opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ydy-QG-7m1" userLabel="Swipe View">
29+
<rect key="frame" x="0.0" y="44" width="414" height="686"/>
30+
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
31+
<connections>
32+
<outletCollection property="gestureRecognizers" destination="CdI-wZ-raI" appends="YES" id="4uQ-Zn-tdg"/>
33+
<outletCollection property="gestureRecognizers" destination="0We-WC-mR8" appends="YES" id="Eph-gV-QWf"/>
34+
</connections>
35+
</view>
2836
<button opaque="NO" contentMode="scaleToFill" verticalHuggingPriority="260" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="evQ-r8-Bjd">
29-
<rect key="frame" x="154" y="535" width="67" height="132"/>
37+
<rect key="frame" x="173.5" y="730" width="67" height="132"/>
3038
<gestureRecognizers/>
3139
<fontDescription key="fontDescription" type="boldSystem" pointSize="100"/>
3240
<color key="tintColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
@@ -43,18 +51,18 @@
4351
<color key="backgroundColor" red="0.1019607843" green="0.79918619790000001" blue="0.1019607843" alpha="1" colorSpace="calibratedRGB"/>
4452
<gestureRecognizers/>
4553
<constraints>
54+
<constraint firstItem="evQ-r8-Bjd" firstAttribute="top" secondItem="ydy-QG-7m1" secondAttribute="bottom" id="7hs-QP-WNz"/>
55+
<constraint firstItem="ydy-QG-7m1" firstAttribute="leading" secondItem="1Vv-Xn-rSK" secondAttribute="leading" id="9Ac-lU-TZd"/>
4656
<constraint firstItem="fwk-yr-LrD" firstAttribute="leading" secondItem="Axt-hh-Z9l" secondAttribute="leadingMargin" id="EXx-QJ-Z36"/>
4757
<constraint firstItem="evQ-r8-Bjd" firstAttribute="centerX" secondItem="1Vv-Xn-rSK" secondAttribute="centerX" id="WZ6-DJ-s8o"/>
4858
<constraint firstItem="fwk-yr-LrD" firstAttribute="top" secondItem="1Vv-Xn-rSK" secondAttribute="top" id="i2n-bR-6fK"/>
4959
<constraint firstItem="fwk-yr-LrD" firstAttribute="bottom" secondItem="evQ-r8-Bjd" secondAttribute="firstBaseline" id="l65-QN-9tf"/>
5060
<constraint firstItem="1Vv-Xn-rSK" firstAttribute="bottom" secondItem="evQ-r8-Bjd" secondAttribute="bottom" id="mdc-nv-YUq"/>
61+
<constraint firstItem="ydy-QG-7m1" firstAttribute="top" secondItem="1Vv-Xn-rSK" secondAttribute="top" id="rYc-k2-OQd"/>
5162
<constraint firstAttribute="trailingMargin" secondItem="fwk-yr-LrD" secondAttribute="trailing" id="uEg-N1-ARS"/>
63+
<constraint firstItem="1Vv-Xn-rSK" firstAttribute="trailing" secondItem="ydy-QG-7m1" secondAttribute="trailing" id="w9V-uz-5gx"/>
5264
</constraints>
5365
<viewLayoutGuide key="safeArea" id="1Vv-Xn-rSK"/>
54-
<connections>
55-
<outletCollection property="gestureRecognizers" destination="CdI-wZ-raI" appends="YES" id="jbk-sK-hTI"/>
56-
<outletCollection property="gestureRecognizers" destination="0We-WC-mR8" appends="YES" id="Vd4-m3-ZsW"/>
57-
</connections>
5866
</view>
5967
<connections>
6068
<outlet property="cooldownLabel" destination="fwk-yr-LrD" id="BVb-nh-XD5"/>
@@ -85,28 +93,28 @@
8593
<objects>
8694
<viewController id="DVs-gN-uFl" customClass="SettingsViewController" customModule="Cooldown" customModuleProvider="target" sceneMemberID="viewController">
8795
<view key="view" opaque="NO" contentMode="scaleToFill" id="xBc-2d-9Qk">
88-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
96+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
8997
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
9098
<subviews>
9199
<visualEffectView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="b6b-vp-sHP">
92-
<rect key="frame" x="0.0" y="279" width="375" height="388"/>
100+
<rect key="frame" x="0.0" y="474" width="414" height="422"/>
93101
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="xpp-E4-z6G">
94-
<rect key="frame" x="0.0" y="0.0" width="375" height="388"/>
102+
<rect key="frame" x="0.0" y="0.0" width="414" height="422"/>
95103
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
96104
</view>
97105
<blurEffect style="extraLight"/>
98106
</visualEffectView>
99107
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="gVV-mI-Cf3">
100-
<rect key="frame" x="16" y="287" width="343" height="248"/>
108+
<rect key="frame" x="16" y="482" width="382" height="248"/>
101109
<subviews>
102110
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Cooldown Interval" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eK8-PZ-ign">
103-
<rect key="frame" x="0.0" y="0.0" width="343" height="24"/>
111+
<rect key="frame" x="0.0" y="0.0" width="382" height="24"/>
104112
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle2"/>
105113
<nil key="textColor"/>
106114
<nil key="highlightedColor"/>
107115
</label>
108116
<datePicker contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" datePickerMode="countDownTimer" minuteInterval="1" translatesAutoresizingMaskIntoConstraints="NO" id="zau-vz-CM7">
109-
<rect key="frame" x="0.0" y="32" width="343" height="216"/>
117+
<rect key="frame" x="0.0" y="32" width="382" height="216"/>
110118
<date key="date" timeIntervalSinceReferenceDate="524176176.072604">
111119
<!--2017-08-11 20:29:36 +0000-->
112120
</date>
@@ -117,7 +125,7 @@
117125
</subviews>
118126
</stackView>
119127
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0dl-vg-V9J">
120-
<rect key="frame" x="145.5" y="535" width="84" height="132"/>
128+
<rect key="frame" x="165" y="730" width="84" height="132"/>
121129
<fontDescription key="fontDescription" type="boldSystem" pointSize="100"/>
122130
<state key="normal" title=""/>
123131
<connections>

0 commit comments

Comments
 (0)