|
1 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
2 | | -<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r"> |
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r"> |
3 | 3 | <dependencies> |
4 | 4 | <deployment identifier="iOS"/> |
5 | 5 | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/> |
| 6 | + <capability name="Constraints to layout margins" minToolsVersion="6.0"/> |
6 | 7 | </dependencies> |
7 | 8 | <scenes> |
8 | 9 | <!--Game View Controller--> |
|
17 | 18 | <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> |
18 | 19 | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
19 | 20 | <subviews> |
20 | | - <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="35L-pI-qif"> |
| 21 | + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2J6-BG-JmJ" customClass="GameFieldView" customModule="SnakeGame" customModuleProvider="target"> |
21 | 22 | <rect key="frame" x="0.0" y="20" width="600" height="580"/> |
22 | | - <subviews> |
23 | | - <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2J6-BG-JmJ" customClass="GameFieldView" customModule="SnakeGame" customModuleProvider="target"> |
24 | | - <rect key="frame" x="0.0" y="0.0" width="600" height="536"/> |
25 | | - <color key="backgroundColor" red="0.96078431369999995" green="0.94509803920000002" blue="0.97254901959999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
26 | | - </view> |
27 | | - <stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="orv-1n-LCh"> |
28 | | - <rect key="frame" x="0.0" y="536" width="600" height="44"/> |
29 | | - <subviews> |
30 | | - <button opaque="NO" alpha="0.29999999999999999" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cpa-cq-xhN"> |
31 | | - <rect key="frame" x="0.0" y="0.0" width="150" height="44"/> |
32 | | - <state key="normal" title="Left"/> |
33 | | - <connections> |
34 | | - <action selector="buttonAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="D4u-mN-dkv"/> |
35 | | - </connections> |
36 | | - </button> |
37 | | - <button opaque="NO" alpha="0.29999999999999999" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="1Si-Kd-ONi"> |
38 | | - <rect key="frame" x="150" y="0.0" width="150" height="44"/> |
39 | | - <state key="normal" title="Up"/> |
40 | | - <connections> |
41 | | - <action selector="buttonAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="4ID-GC-yMb"/> |
42 | | - </connections> |
43 | | - </button> |
44 | | - <button opaque="NO" alpha="0.29999999999999999" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="akL-Rj-9GF"> |
45 | | - <rect key="frame" x="300" y="0.0" width="150" height="44"/> |
46 | | - <state key="normal" title="Down"/> |
47 | | - <connections> |
48 | | - <action selector="buttonAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="1tV-vF-cVr"/> |
49 | | - </connections> |
50 | | - </button> |
51 | | - <button opaque="NO" alpha="0.29999999999999999" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="EbZ-y1-vZA"> |
52 | | - <rect key="frame" x="450" y="0.0" width="150" height="44"/> |
53 | | - <state key="normal" title="Right"/> |
54 | | - <connections> |
55 | | - <action selector="buttonAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Dso-YT-pnR"/> |
56 | | - </connections> |
57 | | - </button> |
58 | | - </subviews> |
59 | | - <constraints> |
60 | | - <constraint firstAttribute="height" constant="44" id="PZb-Hc-TDY"/> |
61 | | - </constraints> |
62 | | - </stackView> |
63 | | - </subviews> |
64 | | - </stackView> |
| 23 | + <color key="backgroundColor" red="0.96078431369999995" green="0.94509803920000002" blue="0.97254901959999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 24 | + <gestureRecognizers/> |
| 25 | + <connections> |
| 26 | + <outletCollection property="gestureRecognizers" destination="Vy2-2v-nIX" appends="YES" id="g9V-5d-Cvh"/> |
| 27 | + <outletCollection property="gestureRecognizers" destination="eE5-DG-6f6" appends="YES" id="hhB-Rl-yyw"/> |
| 28 | + <outletCollection property="gestureRecognizers" destination="xM9-O3-0Oh" appends="YES" id="4Pc-ah-evn"/> |
| 29 | + <outletCollection property="gestureRecognizers" destination="Ffh-dz-TJa" appends="YES" id="0RA-XU-Zy8"/> |
| 30 | + </connections> |
| 31 | + </view> |
65 | 32 | </subviews> |
66 | 33 | <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> |
67 | 34 | <constraints> |
68 | | - <constraint firstAttribute="trailing" secondItem="35L-pI-qif" secondAttribute="trailing" id="cqX-rf-XVA"/> |
69 | | - <constraint firstItem="35L-pI-qif" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" id="dp3-eE-5tp"/> |
70 | | - <constraint firstItem="35L-pI-qif" firstAttribute="bottom" secondItem="wfy-db-euE" secondAttribute="top" id="jzy-J2-TIu"/> |
71 | | - <constraint firstItem="35L-pI-qif" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="lhx-16-1TE"/> |
| 35 | + <constraint firstAttribute="trailingMargin" secondItem="2J6-BG-JmJ" secondAttribute="trailing" constant="-20" id="IDa-sc-3JD"/> |
| 36 | + <constraint firstItem="2J6-BG-JmJ" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="topMargin" constant="20" id="Nqp-Pf-oL9"/> |
| 37 | + <constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="2J6-BG-JmJ" secondAttribute="bottom" id="OWE-i7-JMs"/> |
| 38 | + <constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="2J6-BG-JmJ" secondAttribute="bottom" id="Oh6-IM-in2"/> |
| 39 | + <constraint firstItem="2J6-BG-JmJ" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" constant="-20" id="bc1-gk-Vse"/> |
| 40 | + <constraint firstItem="2J6-BG-JmJ" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="topMargin" id="f7o-5w-YKW"/> |
72 | 41 | </constraints> |
| 42 | + <variation key="default"> |
| 43 | + <mask key="constraints"> |
| 44 | + <exclude reference="f7o-5w-YKW"/> |
| 45 | + <exclude reference="Oh6-IM-in2"/> |
| 46 | + </mask> |
| 47 | + </variation> |
73 | 48 | </view> |
74 | 49 | <connections> |
75 | 50 | <outlet property="gameFieldView" destination="2J6-BG-JmJ" id="F2g-dZ-D8U"/> |
76 | 51 | </connections> |
77 | 52 | </viewController> |
78 | 53 | <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> |
| 54 | + <swipeGestureRecognizer direction="right" id="Vy2-2v-nIX"> |
| 55 | + <connections> |
| 56 | + <action selector="swipeRecognizer:" destination="BYZ-38-t0r" id="6xy-WI-IcC"/> |
| 57 | + </connections> |
| 58 | + </swipeGestureRecognizer> |
| 59 | + <swipeGestureRecognizer direction="left" id="eE5-DG-6f6"> |
| 60 | + <connections> |
| 61 | + <action selector="swipeRecognizer:" destination="BYZ-38-t0r" id="jl4-Xc-wMF"/> |
| 62 | + </connections> |
| 63 | + </swipeGestureRecognizer> |
| 64 | + <swipeGestureRecognizer direction="up" id="xM9-O3-0Oh"> |
| 65 | + <connections> |
| 66 | + <action selector="swipeRecognizer:" destination="BYZ-38-t0r" id="JEW-Nw-iXT"/> |
| 67 | + </connections> |
| 68 | + </swipeGestureRecognizer> |
| 69 | + <swipeGestureRecognizer direction="down" id="Ffh-dz-TJa"> |
| 70 | + <connections> |
| 71 | + <action selector="swipeRecognizer:" destination="BYZ-38-t0r" id="koM-Vu-EDx"/> |
| 72 | + </connections> |
| 73 | + </swipeGestureRecognizer> |
79 | 74 | </objects> |
80 | 75 | <point key="canvasLocation" x="341" y="364"/> |
81 | 76 | </scene> |
|
0 commit comments