├── EnumTable
├── Images.xcassets
│ ├── Contents.json
│ ├── facebook.imageset
│ │ ├── Facebook_logo_32.png
│ │ └── Contents.json
│ ├── phone.imageset
│ │ ├── Phone_receiver_32.png
│ │ └── Contents.json
│ ├── user.imageset
│ │ ├── User_silhouette_32.png
│ │ └── Contents.json
│ ├── gear.imageset
│ │ ├── Settings_Work_Tool_32.png
│ │ └── Contents.json
│ ├── instagram.imageset
│ │ ├── Instagram_Logo_32.png
│ │ └── Contents.json
│ ├── twitter.imageset
│ │ ├── Twitter_Logo_Button_32.png
│ │ └── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── UIImage.swift
├── Info.plist
├── ViewController.swift
├── AppDelegate.swift
├── ViewModel.swift
└── Base.lproj
│ ├── LaunchScreen.xib
│ └── Main.storyboard
├── EnumTable.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
├── .gitignore
├── EnumTableTests
├── Info.plist
└── EnumTableTests.swift
└── LICENSE
/EnumTable/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/facebook.imageset/Facebook_logo_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bwhiteley/EnumTable/HEAD/EnumTable/Images.xcassets/facebook.imageset/Facebook_logo_32.png
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/phone.imageset/Phone_receiver_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bwhiteley/EnumTable/HEAD/EnumTable/Images.xcassets/phone.imageset/Phone_receiver_32.png
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/user.imageset/User_silhouette_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bwhiteley/EnumTable/HEAD/EnumTable/Images.xcassets/user.imageset/User_silhouette_32.png
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/gear.imageset/Settings_Work_Tool_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bwhiteley/EnumTable/HEAD/EnumTable/Images.xcassets/gear.imageset/Settings_Work_Tool_32.png
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/instagram.imageset/Instagram_Logo_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bwhiteley/EnumTable/HEAD/EnumTable/Images.xcassets/instagram.imageset/Instagram_Logo_32.png
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/twitter.imageset/Twitter_Logo_Button_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bwhiteley/EnumTable/HEAD/EnumTable/Images.xcassets/twitter.imageset/Twitter_Logo_Button_32.png
--------------------------------------------------------------------------------
/EnumTable.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/facebook.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x",
6 | "filename" : "Facebook_logo_32.png"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/gear.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x",
6 | "filename" : "Settings_Work_Tool_32.png"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/instagram.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x",
6 | "filename" : "Instagram_Logo_32.png"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/phone.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x",
6 | "filename" : "Phone_receiver_32.png"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/user.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "User_silhouette_32.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/twitter.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x",
6 | "filename" : "Twitter_Logo_Button_32.png"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/EnumTable/UIImage.swift:
--------------------------------------------------------------------------------
1 | //
2 | // UIImage.swift
3 | // EnumTable
4 | //
5 | // Created by Bart Whiteley on 6/17/15.
6 | // Copyright © 2015 whiteley.org. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | extension UIImage {
12 | enum AssetIdentifier:String {
13 | case Facebook = "facebook"
14 | case Twitter = "twitter"
15 | case Instagram = "instagram"
16 | case Gear = "gear"
17 | case Phone = "phone"
18 | case User = "user"
19 | }
20 |
21 | convenience init!(assetIdentifier: AssetIdentifier) {
22 | self.init(named: assetIdentifier.rawValue)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | build/
4 | *.pbxuser
5 | !default.pbxuser
6 | *.mode1v3
7 | !default.mode1v3
8 | *.mode2v3
9 | !default.mode2v3
10 | *.perspectivev3
11 | !default.perspectivev3
12 | xcuserdata
13 | *.xccheckout
14 | *.moved-aside
15 | DerivedData
16 | *.hmap
17 | *.ipa
18 | *.xcuserstate
19 |
20 | # CocoaPods
21 | #
22 | # We recommend against adding the Pods directory to your .gitignore. However
23 | # you should judge for yourself, the pros and cons are mentioned at:
24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
25 | #
26 | # Pods/
27 |
28 | # Carthage
29 | #
30 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
31 | # Carthage/Checkouts
32 |
33 | Carthage/Build
34 |
--------------------------------------------------------------------------------
/EnumTableTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.whiteley.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/EnumTableTests/EnumTableTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // EnumTableTests.swift
3 | // EnumTableTests
4 | //
5 | // Created by Bart Whiteley on 6/5/15.
6 | // Copyright (c) 2015 whiteley.org. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import XCTest
11 |
12 | class EnumTableTests: XCTestCase {
13 |
14 | override func setUp() {
15 | super.setUp()
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 | }
18 |
19 | override func tearDown() {
20 | // Put teardown code here. This method is called after the invocation of each test method in the class.
21 | super.tearDown()
22 | }
23 |
24 | func testExample() {
25 | // This is an example of a functional test case.
26 | XCTAssert(true, "Pass")
27 | }
28 |
29 | func testPerformanceExample() {
30 | // This is an example of a performance test case.
31 | self.measureBlock() {
32 | // Put the code you want to measure the time of here.
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Bart Whiteley
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/EnumTable/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
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 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/EnumTable/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.whiteley.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/EnumTable/ViewController.swift:
--------------------------------------------------------------------------------
1 |
2 | import UIKit
3 |
4 | /// Cell Reuse Identifier
5 | extension Row {
6 | var reuseIdentifier:String {
7 | switch self {
8 | case .Contact, .Settings:
9 | return "redCell"
10 | default:
11 | return "blueCell"
12 | }
13 | }
14 | }
15 |
16 |
17 | class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
18 |
19 | @IBOutlet weak var tableView: UITableView!
20 |
21 | let viewModel = TableViewModel()
22 |
23 | override func viewDidLoad() {
24 | super.viewDidLoad()
25 | self.tableView.contentInset = UIEdgeInsets(top: 20, left: 0, bottom: 0, right: 0)
26 | }
27 |
28 |
29 |
30 | func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
31 | return viewModel.schema[section].rows.count
32 | }
33 |
34 | func numberOfSectionsInTableView(tableView: UITableView) -> Int {
35 | return viewModel.schema.count
36 | }
37 |
38 | func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
39 | let row = self.viewModel.schema[indexPath.section].rows[indexPath.row]
40 | let cell = tableView.dequeueReusableCellWithIdentifier(row.reuseIdentifier, forIndexPath: indexPath) as UITableViewCell
41 | cell.imageView?.image = row.icon
42 | cell.textLabel?.text = row.displayName
43 | cell.accessoryType = row.URL == nil ? .None : .DisclosureIndicator
44 | cell.selectionStyle = row.URL == nil ? .None : .Gray
45 | return cell
46 | }
47 |
48 | func tableView(tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
49 | return self.viewModel.schema[section].sectionTitle
50 | }
51 |
52 | func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
53 | self.tableView.deselectRowAtIndexPath(indexPath, animated: true)
54 | let row = self.viewModel.schema[indexPath.section].rows[indexPath.row]
55 | if let stringURL = row.URL {
56 | if let url = NSURL(string: stringURL) {
57 | UIApplication.sharedApplication().openURL(url)
58 | }
59 | }
60 | }
61 |
62 |
63 | }
64 |
65 |
--------------------------------------------------------------------------------
/EnumTable/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // EnumTable
4 | //
5 | // Created by Bart Whiteley on 6/5/15.
6 | // Copyright (c) 2015 whiteley.org. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(application: UIApplication) {
33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/EnumTable/ViewModel.swift:
--------------------------------------------------------------------------------
1 |
2 |
3 | import UIKit
4 |
5 |
6 | enum Row {
7 | case Twitter, Facebook, Instagram, Contact, Settings
8 | case FirstName(String)
9 | case LastName(String)
10 |
11 |
12 | var displayName:String {
13 | switch self {
14 | case .Twitter:
15 | return NSLocalizedString("Twitter", comment:"")
16 | case .Facebook:
17 | return NSLocalizedString("Facebook", comment:"")
18 | case .Instagram:
19 | return NSLocalizedString("Instagram", comment:"")
20 | case .Contact:
21 | return NSLocalizedString("Contact us", comment:"")
22 | case .Settings:
23 | return NSLocalizedString("Advanced Settings", comment:"")
24 | case let .FirstName(name):
25 | return name
26 | case let .LastName(name):
27 | return name
28 | }
29 | }
30 |
31 | var icon:UIImage? {
32 | let assetId:UIImage.AssetIdentifier
33 | switch self {
34 | case .Twitter:
35 | assetId = .Twitter
36 | case .Facebook:
37 | assetId = .Facebook
38 | case .Instagram:
39 | assetId = .Instagram
40 | case .Contact:
41 | assetId = .Phone
42 | case .Settings:
43 | assetId = .Gear
44 | case .FirstName:
45 | assetId = .User
46 | case .LastName:
47 | assetId = .User
48 | }
49 | return UIImage(assetIdentifier: assetId)
50 | }
51 |
52 | var URL:String? {
53 | switch self {
54 | case .Twitter:
55 | return "http://twitter.com"
56 | case .Facebook:
57 | return "http://facebook.com"
58 | case .Instagram:
59 | return "http://instagram.com"
60 | default:
61 | return nil
62 | }
63 | }
64 |
65 | }
66 |
67 |
68 | class TableViewModel {
69 |
70 | // These are the sections. An array of tuples with the section titles and section rows.
71 | let schema:[(sectionTitle:String, rows:[Row])] = [
72 | (NSLocalizedString("Social", comment:""), [.Facebook, .Instagram, .Twitter]),
73 | (NSLocalizedString("Other", comment:""), [.Contact, .Settings]),
74 | (NSLocalizedString("About You", comment:""), [.FirstName("John"), .LastName("Appleseed")])]
75 |
76 | }
--------------------------------------------------------------------------------
/EnumTable/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/EnumTable/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/EnumTable.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | CCD853A51B3293FC00FCA5D2 /* UIImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCD853A41B3293FC00FCA5D2 /* UIImage.swift */; };
11 | CCFF60881B223C560084BC00 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCFF60871B223C560084BC00 /* AppDelegate.swift */; };
12 | CCFF608A1B223C560084BC00 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCFF60891B223C560084BC00 /* ViewController.swift */; };
13 | CCFF608D1B223C560084BC00 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CCFF608B1B223C560084BC00 /* Main.storyboard */; };
14 | CCFF608F1B223C560084BC00 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CCFF608E1B223C560084BC00 /* Images.xcassets */; };
15 | CCFF60921B223C560084BC00 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCFF60901B223C560084BC00 /* LaunchScreen.xib */; };
16 | CCFF609E1B223C560084BC00 /* EnumTableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCFF609D1B223C560084BC00 /* EnumTableTests.swift */; };
17 | CCFF60A81B223E750084BC00 /* ViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCFF60A71B223E750084BC00 /* ViewModel.swift */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXContainerItemProxy section */
21 | CCFF60981B223C560084BC00 /* PBXContainerItemProxy */ = {
22 | isa = PBXContainerItemProxy;
23 | containerPortal = CCFF607A1B223C560084BC00 /* Project object */;
24 | proxyType = 1;
25 | remoteGlobalIDString = CCFF60811B223C560084BC00;
26 | remoteInfo = EnumTable;
27 | };
28 | /* End PBXContainerItemProxy section */
29 |
30 | /* Begin PBXFileReference section */
31 | CCD853A41B3293FC00FCA5D2 /* UIImage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIImage.swift; sourceTree = ""; };
32 | CCFF60821B223C560084BC00 /* EnumTable.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = EnumTable.app; sourceTree = BUILT_PRODUCTS_DIR; };
33 | CCFF60861B223C560084BC00 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
34 | CCFF60871B223C560084BC00 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
35 | CCFF60891B223C560084BC00 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
36 | CCFF608C1B223C560084BC00 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
37 | CCFF608E1B223C560084BC00 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
38 | CCFF60911B223C560084BC00 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
39 | CCFF60971B223C560084BC00 /* EnumTableTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = EnumTableTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
40 | CCFF609C1B223C560084BC00 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
41 | CCFF609D1B223C560084BC00 /* EnumTableTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EnumTableTests.swift; sourceTree = ""; };
42 | CCFF60A71B223E750084BC00 /* ViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewModel.swift; sourceTree = ""; };
43 | /* End PBXFileReference section */
44 |
45 | /* Begin PBXFrameworksBuildPhase section */
46 | CCFF607F1B223C560084BC00 /* Frameworks */ = {
47 | isa = PBXFrameworksBuildPhase;
48 | buildActionMask = 2147483647;
49 | files = (
50 | );
51 | runOnlyForDeploymentPostprocessing = 0;
52 | };
53 | CCFF60941B223C560084BC00 /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | );
58 | runOnlyForDeploymentPostprocessing = 0;
59 | };
60 | /* End PBXFrameworksBuildPhase section */
61 |
62 | /* Begin PBXGroup section */
63 | CCFF60791B223C560084BC00 = {
64 | isa = PBXGroup;
65 | children = (
66 | CCFF60841B223C560084BC00 /* EnumTable */,
67 | CCFF609A1B223C560084BC00 /* EnumTableTests */,
68 | CCFF60831B223C560084BC00 /* Products */,
69 | );
70 | sourceTree = "";
71 | };
72 | CCFF60831B223C560084BC00 /* Products */ = {
73 | isa = PBXGroup;
74 | children = (
75 | CCFF60821B223C560084BC00 /* EnumTable.app */,
76 | CCFF60971B223C560084BC00 /* EnumTableTests.xctest */,
77 | );
78 | name = Products;
79 | sourceTree = "";
80 | };
81 | CCFF60841B223C560084BC00 /* EnumTable */ = {
82 | isa = PBXGroup;
83 | children = (
84 | CCFF60871B223C560084BC00 /* AppDelegate.swift */,
85 | CCFF60891B223C560084BC00 /* ViewController.swift */,
86 | CCFF608B1B223C560084BC00 /* Main.storyboard */,
87 | CCFF608E1B223C560084BC00 /* Images.xcassets */,
88 | CCFF60901B223C560084BC00 /* LaunchScreen.xib */,
89 | CCFF60851B223C560084BC00 /* Supporting Files */,
90 | CCFF60A71B223E750084BC00 /* ViewModel.swift */,
91 | CCD853A41B3293FC00FCA5D2 /* UIImage.swift */,
92 | );
93 | path = EnumTable;
94 | sourceTree = "";
95 | };
96 | CCFF60851B223C560084BC00 /* Supporting Files */ = {
97 | isa = PBXGroup;
98 | children = (
99 | CCFF60861B223C560084BC00 /* Info.plist */,
100 | );
101 | name = "Supporting Files";
102 | sourceTree = "";
103 | };
104 | CCFF609A1B223C560084BC00 /* EnumTableTests */ = {
105 | isa = PBXGroup;
106 | children = (
107 | CCFF609D1B223C560084BC00 /* EnumTableTests.swift */,
108 | CCFF609B1B223C560084BC00 /* Supporting Files */,
109 | );
110 | path = EnumTableTests;
111 | sourceTree = "";
112 | };
113 | CCFF609B1B223C560084BC00 /* Supporting Files */ = {
114 | isa = PBXGroup;
115 | children = (
116 | CCFF609C1B223C560084BC00 /* Info.plist */,
117 | );
118 | name = "Supporting Files";
119 | sourceTree = "";
120 | };
121 | /* End PBXGroup section */
122 |
123 | /* Begin PBXNativeTarget section */
124 | CCFF60811B223C560084BC00 /* EnumTable */ = {
125 | isa = PBXNativeTarget;
126 | buildConfigurationList = CCFF60A11B223C560084BC00 /* Build configuration list for PBXNativeTarget "EnumTable" */;
127 | buildPhases = (
128 | CCFF607E1B223C560084BC00 /* Sources */,
129 | CCFF607F1B223C560084BC00 /* Frameworks */,
130 | CCFF60801B223C560084BC00 /* Resources */,
131 | );
132 | buildRules = (
133 | );
134 | dependencies = (
135 | );
136 | name = EnumTable;
137 | productName = EnumTable;
138 | productReference = CCFF60821B223C560084BC00 /* EnumTable.app */;
139 | productType = "com.apple.product-type.application";
140 | };
141 | CCFF60961B223C560084BC00 /* EnumTableTests */ = {
142 | isa = PBXNativeTarget;
143 | buildConfigurationList = CCFF60A41B223C560084BC00 /* Build configuration list for PBXNativeTarget "EnumTableTests" */;
144 | buildPhases = (
145 | CCFF60931B223C560084BC00 /* Sources */,
146 | CCFF60941B223C560084BC00 /* Frameworks */,
147 | CCFF60951B223C560084BC00 /* Resources */,
148 | );
149 | buildRules = (
150 | );
151 | dependencies = (
152 | CCFF60991B223C560084BC00 /* PBXTargetDependency */,
153 | );
154 | name = EnumTableTests;
155 | productName = EnumTableTests;
156 | productReference = CCFF60971B223C560084BC00 /* EnumTableTests.xctest */;
157 | productType = "com.apple.product-type.bundle.unit-test";
158 | };
159 | /* End PBXNativeTarget section */
160 |
161 | /* Begin PBXProject section */
162 | CCFF607A1B223C560084BC00 /* Project object */ = {
163 | isa = PBXProject;
164 | attributes = {
165 | LastSwiftUpdateCheck = 0700;
166 | LastUpgradeCheck = 0630;
167 | ORGANIZATIONNAME = whiteley.org;
168 | TargetAttributes = {
169 | CCFF60811B223C560084BC00 = {
170 | CreatedOnToolsVersion = 6.3.2;
171 | };
172 | CCFF60961B223C560084BC00 = {
173 | CreatedOnToolsVersion = 6.3.2;
174 | TestTargetID = CCFF60811B223C560084BC00;
175 | };
176 | };
177 | };
178 | buildConfigurationList = CCFF607D1B223C560084BC00 /* Build configuration list for PBXProject "EnumTable" */;
179 | compatibilityVersion = "Xcode 3.2";
180 | developmentRegion = English;
181 | hasScannedForEncodings = 0;
182 | knownRegions = (
183 | en,
184 | Base,
185 | );
186 | mainGroup = CCFF60791B223C560084BC00;
187 | productRefGroup = CCFF60831B223C560084BC00 /* Products */;
188 | projectDirPath = "";
189 | projectRoot = "";
190 | targets = (
191 | CCFF60811B223C560084BC00 /* EnumTable */,
192 | CCFF60961B223C560084BC00 /* EnumTableTests */,
193 | );
194 | };
195 | /* End PBXProject section */
196 |
197 | /* Begin PBXResourcesBuildPhase section */
198 | CCFF60801B223C560084BC00 /* Resources */ = {
199 | isa = PBXResourcesBuildPhase;
200 | buildActionMask = 2147483647;
201 | files = (
202 | CCFF608D1B223C560084BC00 /* Main.storyboard in Resources */,
203 | CCFF60921B223C560084BC00 /* LaunchScreen.xib in Resources */,
204 | CCFF608F1B223C560084BC00 /* Images.xcassets in Resources */,
205 | );
206 | runOnlyForDeploymentPostprocessing = 0;
207 | };
208 | CCFF60951B223C560084BC00 /* Resources */ = {
209 | isa = PBXResourcesBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | );
213 | runOnlyForDeploymentPostprocessing = 0;
214 | };
215 | /* End PBXResourcesBuildPhase section */
216 |
217 | /* Begin PBXSourcesBuildPhase section */
218 | CCFF607E1B223C560084BC00 /* Sources */ = {
219 | isa = PBXSourcesBuildPhase;
220 | buildActionMask = 2147483647;
221 | files = (
222 | CCFF608A1B223C560084BC00 /* ViewController.swift in Sources */,
223 | CCD853A51B3293FC00FCA5D2 /* UIImage.swift in Sources */,
224 | CCFF60A81B223E750084BC00 /* ViewModel.swift in Sources */,
225 | CCFF60881B223C560084BC00 /* AppDelegate.swift in Sources */,
226 | );
227 | runOnlyForDeploymentPostprocessing = 0;
228 | };
229 | CCFF60931B223C560084BC00 /* Sources */ = {
230 | isa = PBXSourcesBuildPhase;
231 | buildActionMask = 2147483647;
232 | files = (
233 | CCFF609E1B223C560084BC00 /* EnumTableTests.swift in Sources */,
234 | );
235 | runOnlyForDeploymentPostprocessing = 0;
236 | };
237 | /* End PBXSourcesBuildPhase section */
238 |
239 | /* Begin PBXTargetDependency section */
240 | CCFF60991B223C560084BC00 /* PBXTargetDependency */ = {
241 | isa = PBXTargetDependency;
242 | target = CCFF60811B223C560084BC00 /* EnumTable */;
243 | targetProxy = CCFF60981B223C560084BC00 /* PBXContainerItemProxy */;
244 | };
245 | /* End PBXTargetDependency section */
246 |
247 | /* Begin PBXVariantGroup section */
248 | CCFF608B1B223C560084BC00 /* Main.storyboard */ = {
249 | isa = PBXVariantGroup;
250 | children = (
251 | CCFF608C1B223C560084BC00 /* Base */,
252 | );
253 | name = Main.storyboard;
254 | sourceTree = "";
255 | };
256 | CCFF60901B223C560084BC00 /* LaunchScreen.xib */ = {
257 | isa = PBXVariantGroup;
258 | children = (
259 | CCFF60911B223C560084BC00 /* Base */,
260 | );
261 | name = LaunchScreen.xib;
262 | sourceTree = "";
263 | };
264 | /* End PBXVariantGroup section */
265 |
266 | /* Begin XCBuildConfiguration section */
267 | CCFF609F1B223C560084BC00 /* Debug */ = {
268 | isa = XCBuildConfiguration;
269 | buildSettings = {
270 | ALWAYS_SEARCH_USER_PATHS = NO;
271 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
272 | CLANG_CXX_LIBRARY = "libc++";
273 | CLANG_ENABLE_MODULES = YES;
274 | CLANG_ENABLE_OBJC_ARC = YES;
275 | CLANG_WARN_BOOL_CONVERSION = YES;
276 | CLANG_WARN_CONSTANT_CONVERSION = YES;
277 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
278 | CLANG_WARN_EMPTY_BODY = YES;
279 | CLANG_WARN_ENUM_CONVERSION = YES;
280 | CLANG_WARN_INT_CONVERSION = YES;
281 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
282 | CLANG_WARN_UNREACHABLE_CODE = YES;
283 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
284 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
285 | COPY_PHASE_STRIP = NO;
286 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
287 | ENABLE_STRICT_OBJC_MSGSEND = YES;
288 | GCC_C_LANGUAGE_STANDARD = gnu99;
289 | GCC_DYNAMIC_NO_PIC = NO;
290 | GCC_NO_COMMON_BLOCKS = YES;
291 | GCC_OPTIMIZATION_LEVEL = 0;
292 | GCC_PREPROCESSOR_DEFINITIONS = (
293 | "DEBUG=1",
294 | "$(inherited)",
295 | );
296 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
297 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
298 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
299 | GCC_WARN_UNDECLARED_SELECTOR = YES;
300 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
301 | GCC_WARN_UNUSED_FUNCTION = YES;
302 | GCC_WARN_UNUSED_VARIABLE = YES;
303 | IPHONEOS_DEPLOYMENT_TARGET = 8.3;
304 | MTL_ENABLE_DEBUG_INFO = YES;
305 | ONLY_ACTIVE_ARCH = YES;
306 | SDKROOT = iphoneos;
307 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
308 | TARGETED_DEVICE_FAMILY = "1,2";
309 | };
310 | name = Debug;
311 | };
312 | CCFF60A01B223C560084BC00 /* Release */ = {
313 | isa = XCBuildConfiguration;
314 | buildSettings = {
315 | ALWAYS_SEARCH_USER_PATHS = NO;
316 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
317 | CLANG_CXX_LIBRARY = "libc++";
318 | CLANG_ENABLE_MODULES = YES;
319 | CLANG_ENABLE_OBJC_ARC = YES;
320 | CLANG_WARN_BOOL_CONVERSION = YES;
321 | CLANG_WARN_CONSTANT_CONVERSION = YES;
322 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
323 | CLANG_WARN_EMPTY_BODY = YES;
324 | CLANG_WARN_ENUM_CONVERSION = YES;
325 | CLANG_WARN_INT_CONVERSION = YES;
326 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
327 | CLANG_WARN_UNREACHABLE_CODE = YES;
328 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
329 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
330 | COPY_PHASE_STRIP = NO;
331 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
332 | ENABLE_NS_ASSERTIONS = NO;
333 | ENABLE_STRICT_OBJC_MSGSEND = YES;
334 | GCC_C_LANGUAGE_STANDARD = gnu99;
335 | GCC_NO_COMMON_BLOCKS = YES;
336 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
337 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
338 | GCC_WARN_UNDECLARED_SELECTOR = YES;
339 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
340 | GCC_WARN_UNUSED_FUNCTION = YES;
341 | GCC_WARN_UNUSED_VARIABLE = YES;
342 | IPHONEOS_DEPLOYMENT_TARGET = 8.3;
343 | MTL_ENABLE_DEBUG_INFO = NO;
344 | SDKROOT = iphoneos;
345 | TARGETED_DEVICE_FAMILY = "1,2";
346 | VALIDATE_PRODUCT = YES;
347 | };
348 | name = Release;
349 | };
350 | CCFF60A21B223C560084BC00 /* Debug */ = {
351 | isa = XCBuildConfiguration;
352 | buildSettings = {
353 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
354 | INFOPLIST_FILE = EnumTable/Info.plist;
355 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
356 | PRODUCT_NAME = "$(TARGET_NAME)";
357 | };
358 | name = Debug;
359 | };
360 | CCFF60A31B223C560084BC00 /* Release */ = {
361 | isa = XCBuildConfiguration;
362 | buildSettings = {
363 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
364 | INFOPLIST_FILE = EnumTable/Info.plist;
365 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
366 | PRODUCT_NAME = "$(TARGET_NAME)";
367 | };
368 | name = Release;
369 | };
370 | CCFF60A51B223C560084BC00 /* Debug */ = {
371 | isa = XCBuildConfiguration;
372 | buildSettings = {
373 | BUNDLE_LOADER = "$(TEST_HOST)";
374 | FRAMEWORK_SEARCH_PATHS = (
375 | "$(SDKROOT)/Developer/Library/Frameworks",
376 | "$(inherited)",
377 | );
378 | GCC_PREPROCESSOR_DEFINITIONS = (
379 | "DEBUG=1",
380 | "$(inherited)",
381 | );
382 | INFOPLIST_FILE = EnumTableTests/Info.plist;
383 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
384 | PRODUCT_NAME = "$(TARGET_NAME)";
385 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/EnumTable.app/EnumTable";
386 | };
387 | name = Debug;
388 | };
389 | CCFF60A61B223C560084BC00 /* Release */ = {
390 | isa = XCBuildConfiguration;
391 | buildSettings = {
392 | BUNDLE_LOADER = "$(TEST_HOST)";
393 | FRAMEWORK_SEARCH_PATHS = (
394 | "$(SDKROOT)/Developer/Library/Frameworks",
395 | "$(inherited)",
396 | );
397 | INFOPLIST_FILE = EnumTableTests/Info.plist;
398 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
399 | PRODUCT_NAME = "$(TARGET_NAME)";
400 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/EnumTable.app/EnumTable";
401 | };
402 | name = Release;
403 | };
404 | /* End XCBuildConfiguration section */
405 |
406 | /* Begin XCConfigurationList section */
407 | CCFF607D1B223C560084BC00 /* Build configuration list for PBXProject "EnumTable" */ = {
408 | isa = XCConfigurationList;
409 | buildConfigurations = (
410 | CCFF609F1B223C560084BC00 /* Debug */,
411 | CCFF60A01B223C560084BC00 /* Release */,
412 | );
413 | defaultConfigurationIsVisible = 0;
414 | defaultConfigurationName = Release;
415 | };
416 | CCFF60A11B223C560084BC00 /* Build configuration list for PBXNativeTarget "EnumTable" */ = {
417 | isa = XCConfigurationList;
418 | buildConfigurations = (
419 | CCFF60A21B223C560084BC00 /* Debug */,
420 | CCFF60A31B223C560084BC00 /* Release */,
421 | );
422 | defaultConfigurationIsVisible = 0;
423 | defaultConfigurationName = Release;
424 | };
425 | CCFF60A41B223C560084BC00 /* Build configuration list for PBXNativeTarget "EnumTableTests" */ = {
426 | isa = XCConfigurationList;
427 | buildConfigurations = (
428 | CCFF60A51B223C560084BC00 /* Debug */,
429 | CCFF60A61B223C560084BC00 /* Release */,
430 | );
431 | defaultConfigurationIsVisible = 0;
432 | defaultConfigurationName = Release;
433 | };
434 | /* End XCConfigurationList section */
435 | };
436 | rootObject = CCFF607A1B223C560084BC00 /* Project object */;
437 | }
438 |
--------------------------------------------------------------------------------