Skip to content

Commit 34c2f9f

Browse files
committed
add cute example, perhaps mention this in future edition
1 parent 46e9736 commit 34c2f9f

File tree

8 files changed

+548
-0
lines changed

8 files changed

+548
-0
lines changed
Lines changed: 295 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,295 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
324747561BFA2C9700180CA7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324747551BFA2C9700180CA7 /* AppDelegate.swift */; };
11+
324747581BFA2C9700180CA7 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324747571BFA2C9700180CA7 /* ViewController.swift */; };
12+
3247475B1BFA2C9700180CA7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 324747591BFA2C9700180CA7 /* Main.storyboard */; };
13+
3247475D1BFA2C9700180CA7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3247475C1BFA2C9700180CA7 /* Assets.xcassets */; };
14+
324747601BFA2C9700180CA7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3247475E1BFA2C9700180CA7 /* LaunchScreen.storyboard */; };
15+
324747681BFA2CBC00180CA7 /* MySlider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 324747671BFA2CBC00180CA7 /* MySlider.swift */; };
16+
/* End PBXBuildFile section */
17+
18+
/* Begin PBXFileReference section */
19+
324747521BFA2C9700180CA7 /* SliderBubble.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SliderBubble.app; sourceTree = BUILT_PRODUCTS_DIR; };
20+
324747551BFA2C9700180CA7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
21+
324747571BFA2C9700180CA7 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
22+
3247475A1BFA2C9700180CA7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
23+
3247475C1BFA2C9700180CA7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
24+
3247475F1BFA2C9700180CA7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
25+
324747611BFA2C9700180CA7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
26+
324747671BFA2CBC00180CA7 /* MySlider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MySlider.swift; sourceTree = "<group>"; };
27+
/* End PBXFileReference section */
28+
29+
/* Begin PBXFrameworksBuildPhase section */
30+
3247474F1BFA2C9700180CA7 /* Frameworks */ = {
31+
isa = PBXFrameworksBuildPhase;
32+
buildActionMask = 2147483647;
33+
files = (
34+
);
35+
runOnlyForDeploymentPostprocessing = 0;
36+
};
37+
/* End PBXFrameworksBuildPhase section */
38+
39+
/* Begin PBXGroup section */
40+
324747491BFA2C9700180CA7 = {
41+
isa = PBXGroup;
42+
children = (
43+
324747541BFA2C9700180CA7 /* SliderBubble */,
44+
324747531BFA2C9700180CA7 /* Products */,
45+
);
46+
sourceTree = "<group>";
47+
};
48+
324747531BFA2C9700180CA7 /* Products */ = {
49+
isa = PBXGroup;
50+
children = (
51+
324747521BFA2C9700180CA7 /* SliderBubble.app */,
52+
);
53+
name = Products;
54+
sourceTree = "<group>";
55+
};
56+
324747541BFA2C9700180CA7 /* SliderBubble */ = {
57+
isa = PBXGroup;
58+
children = (
59+
324747551BFA2C9700180CA7 /* AppDelegate.swift */,
60+
324747571BFA2C9700180CA7 /* ViewController.swift */,
61+
324747671BFA2CBC00180CA7 /* MySlider.swift */,
62+
324747591BFA2C9700180CA7 /* Main.storyboard */,
63+
3247475C1BFA2C9700180CA7 /* Assets.xcassets */,
64+
3247475E1BFA2C9700180CA7 /* LaunchScreen.storyboard */,
65+
324747611BFA2C9700180CA7 /* Info.plist */,
66+
);
67+
path = SliderBubble;
68+
sourceTree = "<group>";
69+
};
70+
/* End PBXGroup section */
71+
72+
/* Begin PBXNativeTarget section */
73+
324747511BFA2C9700180CA7 /* SliderBubble */ = {
74+
isa = PBXNativeTarget;
75+
buildConfigurationList = 324747641BFA2C9700180CA7 /* Build configuration list for PBXNativeTarget "SliderBubble" */;
76+
buildPhases = (
77+
3247474E1BFA2C9700180CA7 /* Sources */,
78+
3247474F1BFA2C9700180CA7 /* Frameworks */,
79+
324747501BFA2C9700180CA7 /* Resources */,
80+
);
81+
buildRules = (
82+
);
83+
dependencies = (
84+
);
85+
name = SliderBubble;
86+
productName = SliderBubble;
87+
productReference = 324747521BFA2C9700180CA7 /* SliderBubble.app */;
88+
productType = "com.apple.product-type.application";
89+
};
90+
/* End PBXNativeTarget section */
91+
92+
/* Begin PBXProject section */
93+
3247474A1BFA2C9700180CA7 /* Project object */ = {
94+
isa = PBXProject;
95+
attributes = {
96+
LastSwiftUpdateCheck = 0710;
97+
LastUpgradeCheck = 0710;
98+
ORGANIZATIONNAME = "Matt Neuburg";
99+
TargetAttributes = {
100+
324747511BFA2C9700180CA7 = {
101+
CreatedOnToolsVersion = 7.1.1;
102+
};
103+
};
104+
};
105+
buildConfigurationList = 3247474D1BFA2C9700180CA7 /* Build configuration list for PBXProject "SliderBubble" */;
106+
compatibilityVersion = "Xcode 3.2";
107+
developmentRegion = English;
108+
hasScannedForEncodings = 0;
109+
knownRegions = (
110+
en,
111+
Base,
112+
);
113+
mainGroup = 324747491BFA2C9700180CA7;
114+
productRefGroup = 324747531BFA2C9700180CA7 /* Products */;
115+
projectDirPath = "";
116+
projectRoot = "";
117+
targets = (
118+
324747511BFA2C9700180CA7 /* SliderBubble */,
119+
);
120+
};
121+
/* End PBXProject section */
122+
123+
/* Begin PBXResourcesBuildPhase section */
124+
324747501BFA2C9700180CA7 /* Resources */ = {
125+
isa = PBXResourcesBuildPhase;
126+
buildActionMask = 2147483647;
127+
files = (
128+
324747601BFA2C9700180CA7 /* LaunchScreen.storyboard in Resources */,
129+
3247475D1BFA2C9700180CA7 /* Assets.xcassets in Resources */,
130+
3247475B1BFA2C9700180CA7 /* Main.storyboard in Resources */,
131+
);
132+
runOnlyForDeploymentPostprocessing = 0;
133+
};
134+
/* End PBXResourcesBuildPhase section */
135+
136+
/* Begin PBXSourcesBuildPhase section */
137+
3247474E1BFA2C9700180CA7 /* Sources */ = {
138+
isa = PBXSourcesBuildPhase;
139+
buildActionMask = 2147483647;
140+
files = (
141+
324747681BFA2CBC00180CA7 /* MySlider.swift in Sources */,
142+
324747581BFA2C9700180CA7 /* ViewController.swift in Sources */,
143+
324747561BFA2C9700180CA7 /* AppDelegate.swift in Sources */,
144+
);
145+
runOnlyForDeploymentPostprocessing = 0;
146+
};
147+
/* End PBXSourcesBuildPhase section */
148+
149+
/* Begin PBXVariantGroup section */
150+
324747591BFA2C9700180CA7 /* Main.storyboard */ = {
151+
isa = PBXVariantGroup;
152+
children = (
153+
3247475A1BFA2C9700180CA7 /* Base */,
154+
);
155+
name = Main.storyboard;
156+
sourceTree = "<group>";
157+
};
158+
3247475E1BFA2C9700180CA7 /* LaunchScreen.storyboard */ = {
159+
isa = PBXVariantGroup;
160+
children = (
161+
3247475F1BFA2C9700180CA7 /* Base */,
162+
);
163+
name = LaunchScreen.storyboard;
164+
sourceTree = "<group>";
165+
};
166+
/* End PBXVariantGroup section */
167+
168+
/* Begin XCBuildConfiguration section */
169+
324747621BFA2C9700180CA7 /* Debug */ = {
170+
isa = XCBuildConfiguration;
171+
buildSettings = {
172+
ALWAYS_SEARCH_USER_PATHS = NO;
173+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
174+
CLANG_CXX_LIBRARY = "libc++";
175+
CLANG_ENABLE_MODULES = YES;
176+
CLANG_ENABLE_OBJC_ARC = YES;
177+
CLANG_WARN_BOOL_CONVERSION = YES;
178+
CLANG_WARN_CONSTANT_CONVERSION = YES;
179+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
180+
CLANG_WARN_EMPTY_BODY = YES;
181+
CLANG_WARN_ENUM_CONVERSION = YES;
182+
CLANG_WARN_INT_CONVERSION = YES;
183+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
184+
CLANG_WARN_UNREACHABLE_CODE = YES;
185+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
186+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
187+
COPY_PHASE_STRIP = NO;
188+
DEBUG_INFORMATION_FORMAT = dwarf;
189+
ENABLE_STRICT_OBJC_MSGSEND = YES;
190+
ENABLE_TESTABILITY = YES;
191+
GCC_C_LANGUAGE_STANDARD = gnu99;
192+
GCC_DYNAMIC_NO_PIC = NO;
193+
GCC_NO_COMMON_BLOCKS = YES;
194+
GCC_OPTIMIZATION_LEVEL = 0;
195+
GCC_PREPROCESSOR_DEFINITIONS = (
196+
"DEBUG=1",
197+
"$(inherited)",
198+
);
199+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
200+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
201+
GCC_WARN_UNDECLARED_SELECTOR = YES;
202+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
203+
GCC_WARN_UNUSED_FUNCTION = YES;
204+
GCC_WARN_UNUSED_VARIABLE = YES;
205+
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
206+
MTL_ENABLE_DEBUG_INFO = YES;
207+
ONLY_ACTIVE_ARCH = YES;
208+
SDKROOT = iphoneos;
209+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
210+
};
211+
name = Debug;
212+
};
213+
324747631BFA2C9700180CA7 /* Release */ = {
214+
isa = XCBuildConfiguration;
215+
buildSettings = {
216+
ALWAYS_SEARCH_USER_PATHS = NO;
217+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
218+
CLANG_CXX_LIBRARY = "libc++";
219+
CLANG_ENABLE_MODULES = YES;
220+
CLANG_ENABLE_OBJC_ARC = YES;
221+
CLANG_WARN_BOOL_CONVERSION = YES;
222+
CLANG_WARN_CONSTANT_CONVERSION = YES;
223+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
224+
CLANG_WARN_EMPTY_BODY = YES;
225+
CLANG_WARN_ENUM_CONVERSION = YES;
226+
CLANG_WARN_INT_CONVERSION = YES;
227+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
228+
CLANG_WARN_UNREACHABLE_CODE = YES;
229+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
230+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
231+
COPY_PHASE_STRIP = NO;
232+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
233+
ENABLE_NS_ASSERTIONS = NO;
234+
ENABLE_STRICT_OBJC_MSGSEND = YES;
235+
GCC_C_LANGUAGE_STANDARD = gnu99;
236+
GCC_NO_COMMON_BLOCKS = YES;
237+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
238+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
239+
GCC_WARN_UNDECLARED_SELECTOR = YES;
240+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
241+
GCC_WARN_UNUSED_FUNCTION = YES;
242+
GCC_WARN_UNUSED_VARIABLE = YES;
243+
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
244+
MTL_ENABLE_DEBUG_INFO = NO;
245+
SDKROOT = iphoneos;
246+
VALIDATE_PRODUCT = YES;
247+
};
248+
name = Release;
249+
};
250+
324747651BFA2C9700180CA7 /* Debug */ = {
251+
isa = XCBuildConfiguration;
252+
buildSettings = {
253+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
254+
INFOPLIST_FILE = SliderBubble/Info.plist;
255+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
256+
PRODUCT_BUNDLE_IDENTIFIER = com.neuburg.matt.SliderBubble;
257+
PRODUCT_NAME = "$(TARGET_NAME)";
258+
};
259+
name = Debug;
260+
};
261+
324747661BFA2C9700180CA7 /* Release */ = {
262+
isa = XCBuildConfiguration;
263+
buildSettings = {
264+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
265+
INFOPLIST_FILE = SliderBubble/Info.plist;
266+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
267+
PRODUCT_BUNDLE_IDENTIFIER = com.neuburg.matt.SliderBubble;
268+
PRODUCT_NAME = "$(TARGET_NAME)";
269+
};
270+
name = Release;
271+
};
272+
/* End XCBuildConfiguration section */
273+
274+
/* Begin XCConfigurationList section */
275+
3247474D1BFA2C9700180CA7 /* Build configuration list for PBXProject "SliderBubble" */ = {
276+
isa = XCConfigurationList;
277+
buildConfigurations = (
278+
324747621BFA2C9700180CA7 /* Debug */,
279+
324747631BFA2C9700180CA7 /* Release */,
280+
);
281+
defaultConfigurationIsVisible = 0;
282+
defaultConfigurationName = Release;
283+
};
284+
324747641BFA2C9700180CA7 /* Build configuration list for PBXNativeTarget "SliderBubble" */ = {
285+
isa = XCConfigurationList;
286+
buildConfigurations = (
287+
324747651BFA2C9700180CA7 /* Debug */,
288+
324747661BFA2C9700180CA7 /* Release */,
289+
);
290+
defaultConfigurationIsVisible = 0;
291+
};
292+
/* End XCConfigurationList section */
293+
};
294+
rootObject = 3247474A1BFA2C9700180CA7 /* Project object */;
295+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
Lines changed: 38 additions & 0 deletions
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="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/>
5+
</dependencies>
6+
<scenes>
7+
<!--View Controller-->
8+
<scene sceneID="EHf-IW-A2E">
9+
<objects>
10+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
11+
<layoutGuides>
12+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
13+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
14+
</layoutGuides>
15+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
17+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18+
<animations/>
19+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
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)