Skip to content

Commit b32d889

Browse files
committed
Add an example project
1 parent 7dbf33c commit b32d889

7 files changed

Lines changed: 527 additions & 0 deletions

File tree

Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
B5E9F8FF1C8D3B6E00443DC7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5E9F8FE1C8D3B6E00443DC7 /* AppDelegate.swift */; };
11+
B5E9F9011C8D3B6E00443DC7 /* ExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5E9F9001C8D3B6E00443DC7 /* ExampleViewController.swift */; };
12+
B5E9F9061C8D3B6E00443DC7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B5E9F9051C8D3B6E00443DC7 /* Assets.xcassets */; };
13+
B5E9F9091C8D3B6E00443DC7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B5E9F9071C8D3B6E00443DC7 /* LaunchScreen.storyboard */; };
14+
/* End PBXBuildFile section */
15+
16+
/* Begin PBXFileReference section */
17+
B5E9F8FB1C8D3B6E00443DC7 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
18+
B5E9F8FE1C8D3B6E00443DC7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
19+
B5E9F9001C8D3B6E00443DC7 /* ExampleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExampleViewController.swift; sourceTree = "<group>"; };
20+
B5E9F9051C8D3B6E00443DC7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
21+
B5E9F9081C8D3B6E00443DC7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
22+
B5E9F90A1C8D3B6E00443DC7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
23+
/* End PBXFileReference section */
24+
25+
/* Begin PBXFrameworksBuildPhase section */
26+
B5E9F8F81C8D3B6E00443DC7 /* Frameworks */ = {
27+
isa = PBXFrameworksBuildPhase;
28+
buildActionMask = 2147483647;
29+
files = (
30+
);
31+
runOnlyForDeploymentPostprocessing = 0;
32+
};
33+
/* End PBXFrameworksBuildPhase section */
34+
35+
/* Begin PBXGroup section */
36+
B5E9F8F21C8D3B6E00443DC7 = {
37+
isa = PBXGroup;
38+
children = (
39+
B5E9F8FD1C8D3B6E00443DC7 /* Example */,
40+
B5E9F8FC1C8D3B6E00443DC7 /* Products */,
41+
);
42+
sourceTree = "<group>";
43+
};
44+
B5E9F8FC1C8D3B6E00443DC7 /* Products */ = {
45+
isa = PBXGroup;
46+
children = (
47+
B5E9F8FB1C8D3B6E00443DC7 /* Example.app */,
48+
);
49+
name = Products;
50+
sourceTree = "<group>";
51+
};
52+
B5E9F8FD1C8D3B6E00443DC7 /* Example */ = {
53+
isa = PBXGroup;
54+
children = (
55+
B5E9F8FE1C8D3B6E00443DC7 /* AppDelegate.swift */,
56+
B5E9F9051C8D3B6E00443DC7 /* Assets.xcassets */,
57+
B5E9F9001C8D3B6E00443DC7 /* ExampleViewController.swift */,
58+
B5E9F90A1C8D3B6E00443DC7 /* Info.plist */,
59+
B5E9F9071C8D3B6E00443DC7 /* LaunchScreen.storyboard */,
60+
);
61+
path = Example;
62+
sourceTree = "<group>";
63+
};
64+
/* End PBXGroup section */
65+
66+
/* Begin PBXNativeTarget section */
67+
B5E9F8FA1C8D3B6E00443DC7 /* Example */ = {
68+
isa = PBXNativeTarget;
69+
buildConfigurationList = B5E9F90D1C8D3B6E00443DC7 /* Build configuration list for PBXNativeTarget "Example" */;
70+
buildPhases = (
71+
B5E9F8F71C8D3B6E00443DC7 /* Sources */,
72+
B5E9F8F81C8D3B6E00443DC7 /* Frameworks */,
73+
B5E9F8F91C8D3B6E00443DC7 /* Resources */,
74+
);
75+
buildRules = (
76+
);
77+
dependencies = (
78+
);
79+
name = Example;
80+
productName = Example;
81+
productReference = B5E9F8FB1C8D3B6E00443DC7 /* Example.app */;
82+
productType = "com.apple.product-type.application";
83+
};
84+
/* End PBXNativeTarget section */
85+
86+
/* Begin PBXProject section */
87+
B5E9F8F31C8D3B6E00443DC7 /* Project object */ = {
88+
isa = PBXProject;
89+
attributes = {
90+
LastSwiftUpdateCheck = 0720;
91+
LastUpgradeCheck = 0720;
92+
ORGANIZATIONNAME = "Polydice, Inc.";
93+
TargetAttributes = {
94+
B5E9F8FA1C8D3B6E00443DC7 = {
95+
CreatedOnToolsVersion = 7.2.1;
96+
};
97+
};
98+
};
99+
buildConfigurationList = B5E9F8F61C8D3B6E00443DC7 /* Build configuration list for PBXProject "Example" */;
100+
compatibilityVersion = "Xcode 3.2";
101+
developmentRegion = English;
102+
hasScannedForEncodings = 0;
103+
knownRegions = (
104+
en,
105+
Base,
106+
);
107+
mainGroup = B5E9F8F21C8D3B6E00443DC7;
108+
productRefGroup = B5E9F8FC1C8D3B6E00443DC7 /* Products */;
109+
projectDirPath = "";
110+
projectRoot = "";
111+
targets = (
112+
B5E9F8FA1C8D3B6E00443DC7 /* Example */,
113+
);
114+
};
115+
/* End PBXProject section */
116+
117+
/* Begin PBXResourcesBuildPhase section */
118+
B5E9F8F91C8D3B6E00443DC7 /* Resources */ = {
119+
isa = PBXResourcesBuildPhase;
120+
buildActionMask = 2147483647;
121+
files = (
122+
B5E9F9061C8D3B6E00443DC7 /* Assets.xcassets in Resources */,
123+
B5E9F9091C8D3B6E00443DC7 /* LaunchScreen.storyboard in Resources */,
124+
);
125+
runOnlyForDeploymentPostprocessing = 0;
126+
};
127+
/* End PBXResourcesBuildPhase section */
128+
129+
/* Begin PBXSourcesBuildPhase section */
130+
B5E9F8F71C8D3B6E00443DC7 /* Sources */ = {
131+
isa = PBXSourcesBuildPhase;
132+
buildActionMask = 2147483647;
133+
files = (
134+
B5E9F8FF1C8D3B6E00443DC7 /* AppDelegate.swift in Sources */,
135+
B5E9F9011C8D3B6E00443DC7 /* ExampleViewController.swift in Sources */,
136+
);
137+
runOnlyForDeploymentPostprocessing = 0;
138+
};
139+
/* End PBXSourcesBuildPhase section */
140+
141+
/* Begin PBXVariantGroup section */
142+
B5E9F9071C8D3B6E00443DC7 /* LaunchScreen.storyboard */ = {
143+
isa = PBXVariantGroup;
144+
children = (
145+
B5E9F9081C8D3B6E00443DC7 /* Base */,
146+
);
147+
name = LaunchScreen.storyboard;
148+
sourceTree = "<group>";
149+
};
150+
/* End PBXVariantGroup section */
151+
152+
/* Begin XCBuildConfiguration section */
153+
B5E9F90B1C8D3B6E00443DC7 /* Debug */ = {
154+
isa = XCBuildConfiguration;
155+
buildSettings = {
156+
ALWAYS_SEARCH_USER_PATHS = NO;
157+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
158+
CLANG_CXX_LIBRARY = "libc++";
159+
CLANG_ENABLE_MODULES = YES;
160+
CLANG_ENABLE_OBJC_ARC = YES;
161+
CLANG_WARN_BOOL_CONVERSION = YES;
162+
CLANG_WARN_CONSTANT_CONVERSION = YES;
163+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
164+
CLANG_WARN_EMPTY_BODY = YES;
165+
CLANG_WARN_ENUM_CONVERSION = YES;
166+
CLANG_WARN_INT_CONVERSION = YES;
167+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
168+
CLANG_WARN_UNREACHABLE_CODE = YES;
169+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
170+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
171+
COPY_PHASE_STRIP = NO;
172+
DEBUG_INFORMATION_FORMAT = dwarf;
173+
ENABLE_STRICT_OBJC_MSGSEND = YES;
174+
ENABLE_TESTABILITY = YES;
175+
GCC_C_LANGUAGE_STANDARD = gnu99;
176+
GCC_DYNAMIC_NO_PIC = NO;
177+
GCC_NO_COMMON_BLOCKS = YES;
178+
GCC_OPTIMIZATION_LEVEL = 0;
179+
GCC_PREPROCESSOR_DEFINITIONS = (
180+
"DEBUG=1",
181+
"$(inherited)",
182+
);
183+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
184+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
185+
GCC_WARN_UNDECLARED_SELECTOR = YES;
186+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
187+
GCC_WARN_UNUSED_FUNCTION = YES;
188+
GCC_WARN_UNUSED_VARIABLE = YES;
189+
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
190+
MTL_ENABLE_DEBUG_INFO = YES;
191+
ONLY_ACTIVE_ARCH = YES;
192+
SDKROOT = iphoneos;
193+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
194+
};
195+
name = Debug;
196+
};
197+
B5E9F90C1C8D3B6E00443DC7 /* Release */ = {
198+
isa = XCBuildConfiguration;
199+
buildSettings = {
200+
ALWAYS_SEARCH_USER_PATHS = NO;
201+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
202+
CLANG_CXX_LIBRARY = "libc++";
203+
CLANG_ENABLE_MODULES = YES;
204+
CLANG_ENABLE_OBJC_ARC = YES;
205+
CLANG_WARN_BOOL_CONVERSION = YES;
206+
CLANG_WARN_CONSTANT_CONVERSION = YES;
207+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
208+
CLANG_WARN_EMPTY_BODY = YES;
209+
CLANG_WARN_ENUM_CONVERSION = YES;
210+
CLANG_WARN_INT_CONVERSION = YES;
211+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
212+
CLANG_WARN_UNREACHABLE_CODE = YES;
213+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
214+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
215+
COPY_PHASE_STRIP = NO;
216+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
217+
ENABLE_NS_ASSERTIONS = NO;
218+
ENABLE_STRICT_OBJC_MSGSEND = YES;
219+
GCC_C_LANGUAGE_STANDARD = gnu99;
220+
GCC_NO_COMMON_BLOCKS = YES;
221+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
222+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
223+
GCC_WARN_UNDECLARED_SELECTOR = YES;
224+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
225+
GCC_WARN_UNUSED_FUNCTION = YES;
226+
GCC_WARN_UNUSED_VARIABLE = YES;
227+
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
228+
MTL_ENABLE_DEBUG_INFO = NO;
229+
SDKROOT = iphoneos;
230+
VALIDATE_PRODUCT = YES;
231+
};
232+
name = Release;
233+
};
234+
B5E9F90E1C8D3B6E00443DC7 /* Debug */ = {
235+
isa = XCBuildConfiguration;
236+
buildSettings = {
237+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
238+
INFOPLIST_FILE = Example/Info.plist;
239+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
240+
PRODUCT_BUNDLE_IDENTIFIER = com.polydice.ICInputAccessoryExample;
241+
PRODUCT_NAME = "$(TARGET_NAME)";
242+
};
243+
name = Debug;
244+
};
245+
B5E9F90F1C8D3B6E00443DC7 /* Release */ = {
246+
isa = XCBuildConfiguration;
247+
buildSettings = {
248+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
249+
INFOPLIST_FILE = Example/Info.plist;
250+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
251+
PRODUCT_BUNDLE_IDENTIFIER = com.polydice.ICInputAccessoryExample;
252+
PRODUCT_NAME = "$(TARGET_NAME)";
253+
};
254+
name = Release;
255+
};
256+
/* End XCBuildConfiguration section */
257+
258+
/* Begin XCConfigurationList section */
259+
B5E9F8F61C8D3B6E00443DC7 /* Build configuration list for PBXProject "Example" */ = {
260+
isa = XCConfigurationList;
261+
buildConfigurations = (
262+
B5E9F90B1C8D3B6E00443DC7 /* Debug */,
263+
B5E9F90C1C8D3B6E00443DC7 /* Release */,
264+
);
265+
defaultConfigurationIsVisible = 0;
266+
defaultConfigurationName = Release;
267+
};
268+
B5E9F90D1C8D3B6E00443DC7 /* Build configuration list for PBXNativeTarget "Example" */ = {
269+
isa = XCConfigurationList;
270+
buildConfigurations = (
271+
B5E9F90E1C8D3B6E00443DC7 /* Debug */,
272+
B5E9F90F1C8D3B6E00443DC7 /* Release */,
273+
);
274+
defaultConfigurationIsVisible = 0;
275+
defaultConfigurationName = Release;
276+
};
277+
/* End XCConfigurationList section */
278+
};
279+
rootObject = B5E9F8F31C8D3B6E00443DC7 /* Project object */;
280+
}

Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Example/AppDelegate.swift

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
//
2+
// AppDelegate.swift
3+
// Example
4+
//
5+
// Created by Ben on 07/03/2016.
6+
// Copyright © 2016 Polydice, Inc.
7+
//
8+
// Permission is hereby granted, free of charge, to any person obtaining a copy
9+
// of this software and associated documentation files (the "Software"), to deal
10+
// in the Software without restriction, including without limitation the rights
11+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
// copies of the Software, and to permit persons to whom the Software is
13+
// furnished to do so, subject to the following conditions:
14+
//
15+
// The above copyright notice and this permission notice shall be included in all
16+
// copies or substantial portions of the Software.
17+
//
18+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
// SOFTWARE.
25+
//
26+
27+
import UIKit
28+
29+
@UIApplicationMain
30+
class AppDelegate: UIResponder, UIApplicationDelegate {
31+
32+
var window: UIWindow?
33+
34+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
35+
window = UIWindow(frame: UIScreen.mainScreen().bounds)
36+
window?.backgroundColor = UIColor.whiteColor()
37+
window?.rootViewController = UINavigationController(rootViewController: ExampleViewController())
38+
window?.makeKeyAndVisible()
39+
return true
40+
}
41+
42+
}
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+
}

0 commit comments

Comments
 (0)