Skip to content

Commit 1d3b46b

Browse files
committed
more book 2 chapter 1 tweaks
1 parent 23e705a commit 1d3b46b

File tree

8 files changed

+558
-1
lines changed

8 files changed

+558
-1
lines changed
Lines changed: 304 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,304 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
8102E3F61D3C4D5400912F69 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8102E3F51D3C4D5400912F69 /* AppDelegate.swift */; };
11+
8102E3F81D3C4D5400912F69 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8102E3F71D3C4D5400912F69 /* ViewController.swift */; };
12+
8102E3FB1D3C4D5400912F69 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8102E3F91D3C4D5400912F69 /* Main.storyboard */; };
13+
8102E3FD1D3C4D5400912F69 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8102E3FC1D3C4D5400912F69 /* Assets.xcassets */; };
14+
8102E4001D3C4D5400912F69 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8102E3FE1D3C4D5400912F69 /* LaunchScreen.storyboard */; };
15+
/* End PBXBuildFile section */
16+
17+
/* Begin PBXFileReference section */
18+
8102E3F21D3C4D5400912F69 /* AutoresizingConstraints.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AutoresizingConstraints.app; sourceTree = BUILT_PRODUCTS_DIR; };
19+
8102E3F51D3C4D5400912F69 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
20+
8102E3F71D3C4D5400912F69 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
21+
8102E3FA1D3C4D5400912F69 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
22+
8102E3FC1D3C4D5400912F69 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
23+
8102E3FF1D3C4D5400912F69 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
24+
8102E4011D3C4D5400912F69 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
25+
/* End PBXFileReference section */
26+
27+
/* Begin PBXFrameworksBuildPhase section */
28+
8102E3EF1D3C4D5400912F69 /* Frameworks */ = {
29+
isa = PBXFrameworksBuildPhase;
30+
buildActionMask = 2147483647;
31+
files = (
32+
);
33+
runOnlyForDeploymentPostprocessing = 0;
34+
};
35+
/* End PBXFrameworksBuildPhase section */
36+
37+
/* Begin PBXGroup section */
38+
8102E3E91D3C4D5400912F69 = {
39+
isa = PBXGroup;
40+
children = (
41+
8102E3F41D3C4D5400912F69 /* AutoresizingConstraints */,
42+
8102E3F31D3C4D5400912F69 /* Products */,
43+
);
44+
sourceTree = "<group>";
45+
};
46+
8102E3F31D3C4D5400912F69 /* Products */ = {
47+
isa = PBXGroup;
48+
children = (
49+
8102E3F21D3C4D5400912F69 /* AutoresizingConstraints.app */,
50+
);
51+
name = Products;
52+
sourceTree = "<group>";
53+
};
54+
8102E3F41D3C4D5400912F69 /* AutoresizingConstraints */ = {
55+
isa = PBXGroup;
56+
children = (
57+
8102E3F51D3C4D5400912F69 /* AppDelegate.swift */,
58+
8102E3F71D3C4D5400912F69 /* ViewController.swift */,
59+
8102E3F91D3C4D5400912F69 /* Main.storyboard */,
60+
8102E3FC1D3C4D5400912F69 /* Assets.xcassets */,
61+
8102E3FE1D3C4D5400912F69 /* LaunchScreen.storyboard */,
62+
8102E4011D3C4D5400912F69 /* Info.plist */,
63+
);
64+
name = AutoresizingConstraints;
65+
path = ImplicitConstraintsInNib;
66+
sourceTree = "<group>";
67+
};
68+
/* End PBXGroup section */
69+
70+
/* Begin PBXNativeTarget section */
71+
8102E3F11D3C4D5400912F69 /* AutoresizingConstraints */ = {
72+
isa = PBXNativeTarget;
73+
buildConfigurationList = 8102E4041D3C4D5400912F69 /* Build configuration list for PBXNativeTarget "AutoresizingConstraints" */;
74+
buildPhases = (
75+
8102E3EE1D3C4D5400912F69 /* Sources */,
76+
8102E3EF1D3C4D5400912F69 /* Frameworks */,
77+
8102E3F01D3C4D5400912F69 /* Resources */,
78+
);
79+
buildRules = (
80+
);
81+
dependencies = (
82+
);
83+
name = AutoresizingConstraints;
84+
productName = ImplicitConstraintsInNib;
85+
productReference = 8102E3F21D3C4D5400912F69 /* AutoresizingConstraints.app */;
86+
productType = "com.apple.product-type.application";
87+
};
88+
/* End PBXNativeTarget section */
89+
90+
/* Begin PBXProject section */
91+
8102E3EA1D3C4D5400912F69 /* Project object */ = {
92+
isa = PBXProject;
93+
attributes = {
94+
LastSwiftUpdateCheck = 0800;
95+
LastUpgradeCheck = 0800;
96+
ORGANIZATIONNAME = "Mattt Neuburg";
97+
TargetAttributes = {
98+
8102E3F11D3C4D5400912F69 = {
99+
CreatedOnToolsVersion = 8.0;
100+
DevelopmentTeam = W3LHX5RGV2;
101+
DevelopmentTeamName = "Matt Neuburg";
102+
ProvisioningStyle = Automatic;
103+
};
104+
};
105+
};
106+
buildConfigurationList = 8102E3ED1D3C4D5400912F69 /* Build configuration list for PBXProject "AutoresizingConstraints" */;
107+
compatibilityVersion = "Xcode 3.2";
108+
developmentRegion = English;
109+
hasScannedForEncodings = 0;
110+
knownRegions = (
111+
en,
112+
Base,
113+
);
114+
mainGroup = 8102E3E91D3C4D5400912F69;
115+
productRefGroup = 8102E3F31D3C4D5400912F69 /* Products */;
116+
projectDirPath = "";
117+
projectRoot = "";
118+
targets = (
119+
8102E3F11D3C4D5400912F69 /* AutoresizingConstraints */,
120+
);
121+
};
122+
/* End PBXProject section */
123+
124+
/* Begin PBXResourcesBuildPhase section */
125+
8102E3F01D3C4D5400912F69 /* Resources */ = {
126+
isa = PBXResourcesBuildPhase;
127+
buildActionMask = 2147483647;
128+
files = (
129+
8102E4001D3C4D5400912F69 /* LaunchScreen.storyboard in Resources */,
130+
8102E3FD1D3C4D5400912F69 /* Assets.xcassets in Resources */,
131+
8102E3FB1D3C4D5400912F69 /* Main.storyboard in Resources */,
132+
);
133+
runOnlyForDeploymentPostprocessing = 0;
134+
};
135+
/* End PBXResourcesBuildPhase section */
136+
137+
/* Begin PBXSourcesBuildPhase section */
138+
8102E3EE1D3C4D5400912F69 /* Sources */ = {
139+
isa = PBXSourcesBuildPhase;
140+
buildActionMask = 2147483647;
141+
files = (
142+
8102E3F81D3C4D5400912F69 /* ViewController.swift in Sources */,
143+
8102E3F61D3C4D5400912F69 /* AppDelegate.swift in Sources */,
144+
);
145+
runOnlyForDeploymentPostprocessing = 0;
146+
};
147+
/* End PBXSourcesBuildPhase section */
148+
149+
/* Begin PBXVariantGroup section */
150+
8102E3F91D3C4D5400912F69 /* Main.storyboard */ = {
151+
isa = PBXVariantGroup;
152+
children = (
153+
8102E3FA1D3C4D5400912F69 /* Base */,
154+
);
155+
name = Main.storyboard;
156+
sourceTree = "<group>";
157+
};
158+
8102E3FE1D3C4D5400912F69 /* LaunchScreen.storyboard */ = {
159+
isa = PBXVariantGroup;
160+
children = (
161+
8102E3FF1D3C4D5400912F69 /* Base */,
162+
);
163+
name = LaunchScreen.storyboard;
164+
sourceTree = "<group>";
165+
};
166+
/* End PBXVariantGroup section */
167+
168+
/* Begin XCBuildConfiguration section */
169+
8102E4021D3C4D5400912F69 /* Debug */ = {
170+
isa = XCBuildConfiguration;
171+
buildSettings = {
172+
ALWAYS_SEARCH_USER_PATHS = NO;
173+
CLANG_ANALYZER_NONNULL = YES;
174+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
175+
CLANG_CXX_LIBRARY = "libc++";
176+
CLANG_ENABLE_MODULES = YES;
177+
CLANG_ENABLE_OBJC_ARC = YES;
178+
CLANG_WARN_BOOL_CONVERSION = YES;
179+
CLANG_WARN_CONSTANT_CONVERSION = YES;
180+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
181+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
182+
CLANG_WARN_EMPTY_BODY = YES;
183+
CLANG_WARN_ENUM_CONVERSION = YES;
184+
CLANG_WARN_INT_CONVERSION = YES;
185+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
186+
CLANG_WARN_UNREACHABLE_CODE = YES;
187+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
188+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
189+
COPY_PHASE_STRIP = NO;
190+
DEBUG_INFORMATION_FORMAT = dwarf;
191+
ENABLE_STRICT_OBJC_MSGSEND = YES;
192+
ENABLE_TESTABILITY = YES;
193+
GCC_C_LANGUAGE_STANDARD = gnu99;
194+
GCC_DYNAMIC_NO_PIC = NO;
195+
GCC_NO_COMMON_BLOCKS = YES;
196+
GCC_OPTIMIZATION_LEVEL = 0;
197+
GCC_PREPROCESSOR_DEFINITIONS = (
198+
"DEBUG=1",
199+
"$(inherited)",
200+
);
201+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
202+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
203+
GCC_WARN_UNDECLARED_SELECTOR = YES;
204+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
205+
GCC_WARN_UNUSED_FUNCTION = YES;
206+
GCC_WARN_UNUSED_VARIABLE = YES;
207+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
208+
MTL_ENABLE_DEBUG_INFO = YES;
209+
ONLY_ACTIVE_ARCH = YES;
210+
SDKROOT = iphoneos;
211+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
212+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
213+
};
214+
name = Debug;
215+
};
216+
8102E4031D3C4D5400912F69 /* Release */ = {
217+
isa = XCBuildConfiguration;
218+
buildSettings = {
219+
ALWAYS_SEARCH_USER_PATHS = NO;
220+
CLANG_ANALYZER_NONNULL = YES;
221+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
222+
CLANG_CXX_LIBRARY = "libc++";
223+
CLANG_ENABLE_MODULES = YES;
224+
CLANG_ENABLE_OBJC_ARC = YES;
225+
CLANG_WARN_BOOL_CONVERSION = YES;
226+
CLANG_WARN_CONSTANT_CONVERSION = YES;
227+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
228+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
229+
CLANG_WARN_EMPTY_BODY = YES;
230+
CLANG_WARN_ENUM_CONVERSION = YES;
231+
CLANG_WARN_INT_CONVERSION = YES;
232+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
233+
CLANG_WARN_UNREACHABLE_CODE = YES;
234+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
235+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
236+
COPY_PHASE_STRIP = NO;
237+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
238+
ENABLE_NS_ASSERTIONS = NO;
239+
ENABLE_STRICT_OBJC_MSGSEND = YES;
240+
GCC_C_LANGUAGE_STANDARD = gnu99;
241+
GCC_NO_COMMON_BLOCKS = YES;
242+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
243+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
244+
GCC_WARN_UNDECLARED_SELECTOR = YES;
245+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
246+
GCC_WARN_UNUSED_FUNCTION = YES;
247+
GCC_WARN_UNUSED_VARIABLE = YES;
248+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
249+
MTL_ENABLE_DEBUG_INFO = NO;
250+
SDKROOT = iphoneos;
251+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
252+
VALIDATE_PRODUCT = YES;
253+
};
254+
name = Release;
255+
};
256+
8102E4051D3C4D5400912F69 /* Debug */ = {
257+
isa = XCBuildConfiguration;
258+
buildSettings = {
259+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
260+
INFOPLIST_FILE = ImplicitConstraintsInNib/Info.plist;
261+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
262+
PRODUCT_BUNDLE_IDENTIFIER = com.neuburg.matt.ImplicitConstraintsInNib;
263+
PRODUCT_NAME = "$(TARGET_NAME)";
264+
SWIFT_VERSION = 3.0;
265+
};
266+
name = Debug;
267+
};
268+
8102E4061D3C4D5400912F69 /* Release */ = {
269+
isa = XCBuildConfiguration;
270+
buildSettings = {
271+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
272+
INFOPLIST_FILE = ImplicitConstraintsInNib/Info.plist;
273+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
274+
PRODUCT_BUNDLE_IDENTIFIER = com.neuburg.matt.ImplicitConstraintsInNib;
275+
PRODUCT_NAME = "$(TARGET_NAME)";
276+
SWIFT_VERSION = 3.0;
277+
};
278+
name = Release;
279+
};
280+
/* End XCBuildConfiguration section */
281+
282+
/* Begin XCConfigurationList section */
283+
8102E3ED1D3C4D5400912F69 /* Build configuration list for PBXProject "AutoresizingConstraints" */ = {
284+
isa = XCConfigurationList;
285+
buildConfigurations = (
286+
8102E4021D3C4D5400912F69 /* Debug */,
287+
8102E4031D3C4D5400912F69 /* Release */,
288+
);
289+
defaultConfigurationIsVisible = 0;
290+
defaultConfigurationName = Release;
291+
};
292+
8102E4041D3C4D5400912F69 /* Build configuration list for PBXNativeTarget "AutoresizingConstraints" */ = {
293+
isa = XCConfigurationList;
294+
buildConfigurations = (
295+
8102E4051D3C4D5400912F69 /* Debug */,
296+
8102E4061D3C4D5400912F69 /* Release */,
297+
);
298+
defaultConfigurationIsVisible = 0;
299+
defaultConfigurationName = Release;
300+
};
301+
/* End XCConfigurationList section */
302+
};
303+
rootObject = 8102E3EA1D3C4D5400912F69 /* Project object */;
304+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
3+
import UIKit
4+
5+
@UIApplicationMain
6+
class AppDelegate: UIResponder, UIApplicationDelegate {
7+
8+
var window: UIWindow?
9+
10+
11+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
12+
// Override point for customization after application launch.
13+
return true
14+
}
15+
16+
17+
18+
}
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "29x29",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "29x29",
11+
"scale" : "3x"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"size" : "40x40",
16+
"scale" : "2x"
17+
},
18+
{
19+
"idiom" : "iphone",
20+
"size" : "40x40",
21+
"scale" : "3x"
22+
},
23+
{
24+
"idiom" : "iphone",
25+
"size" : "60x60",
26+
"scale" : "2x"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"size" : "60x60",
31+
"scale" : "3x"
32+
}
33+
],
34+
"info" : {
35+
"version" : 1,
36+
"author" : "xcode"
37+
}
38+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
5+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
6+
</dependencies>
7+
<scenes>
8+
<!--View Controller-->
9+
<scene sceneID="EHf-IW-A2E">
10+
<objects>
11+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
12+
<layoutGuides>
13+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
14+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
15+
</layoutGuides>
16+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
17+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
18+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
20+
</view>
21+
</viewController>
22+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
23+
</objects>
24+
<point key="canvasLocation" x="53" y="375"/>
25+
</scene>
26+
</scenes>
27+
</document>

0 commit comments

Comments
 (0)