├── SwiftAppMenuController.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── samuel.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── SwiftAppMenuController.xccheckout
├── xcuserdata
│ ├── Zamudio.xcuserdatad
│ │ └── xcschemes
│ │ │ ├── xcschememanagement.plist
│ │ │ └── SwiftAppMenuController.xcscheme
│ └── samuel.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── SwiftAppMenuController.xcscheme
└── project.pbxproj
├── SwiftAppMenuController
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── BackViewController.swift
├── Info.plist
├── FrontViewController.swift
├── AppDelegate.swift
├── SwiftAppMenuController.swift
└── Base.lproj
│ └── Main.storyboard
├── SwiftAppMenuControllerTests
├── Info.plist
└── SwiftAppMenuControllerTests.swift
└── README.md
/SwiftAppMenuController.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SwiftAppMenuController.xcodeproj/project.xcworkspace/xcuserdata/samuel.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/soyzamudio/SwiftAppMenuController/HEAD/SwiftAppMenuController.xcodeproj/project.xcworkspace/xcuserdata/samuel.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/SwiftAppMenuController/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" : "40x40",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "60x60",
16 | "scale" : "2x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/SwiftAppMenuController/Images.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "extent" : "full-screen",
7 | "minimum-system-version" : "7.0",
8 | "scale" : "2x"
9 | },
10 | {
11 | "orientation" : "portrait",
12 | "idiom" : "iphone",
13 | "subtype" : "retina4",
14 | "extent" : "full-screen",
15 | "minimum-system-version" : "7.0",
16 | "scale" : "2x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/SwiftAppMenuController.xcodeproj/xcuserdata/Zamudio.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | SwiftAppMenuController.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 8048C06919899C0C00814470
16 |
17 | primary
18 |
19 |
20 | 8048C07B19899C0C00814470
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/SwiftAppMenuController.xcodeproj/xcuserdata/samuel.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | SwiftAppMenuController.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 8048C06919899C0C00814470
16 |
17 | primary
18 |
19 |
20 | 8048C07B19899C0C00814470
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/SwiftAppMenuController/BackViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // BackViewController.swift
3 | // SwiftAppMenuController
4 | //
5 | // Created by Jose Zamudio on 7/30/14.
6 | // Copyright (c) 2014 zamudio. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import UIKit
11 |
12 | class BackViewController: UIViewController {
13 |
14 | override func viewDidLoad() {
15 | super.viewDidLoad()
16 |
17 | self.view.backgroundColor = UIColor.redColor()
18 |
19 | var label = UILabel(frame: self.view.frame)
20 | label.text = "BACK VIEW"
21 | label.textColor = UIColor.whiteColor()
22 | label.font = UIFont.boldSystemFontOfSize(20)
23 | label.textAlignment = .Center
24 |
25 | self.view.addSubview(label)
26 | }
27 | }
--------------------------------------------------------------------------------
/SwiftAppMenuControllerTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | com.zamudio.${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 |
--------------------------------------------------------------------------------
/SwiftAppMenuControllerTests/SwiftAppMenuControllerTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SwiftAppMenuControllerTests.swift
3 | // SwiftAppMenuControllerTests
4 | //
5 | // Created by Jose Zamudio on 7/30/14.
6 | // Copyright (c) 2014 zamudio. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import XCTest
11 |
12 | class SwiftAppMenuControllerTests: 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 |
--------------------------------------------------------------------------------
/SwiftAppMenuController/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | com.zamudio.${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 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/SwiftAppMenuController/FrontViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // FrontViewController.swift
3 | // SwiftAppMenuController
4 | //
5 | // Created by Jose Zamudio on 7/30/14.
6 | // Copyright (c) 2014 zamudio. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import UIKit
11 |
12 | class FrontViewController: UIViewController {
13 |
14 | var navController = SwiftAppMenuController()
15 |
16 | override func viewDidLoad() {
17 | super.viewDidLoad()
18 |
19 | self.view.backgroundColor = UIColor.blueColor()
20 | self.navigationController?.navigationBar.translucent = false
21 | self.title = "SwiftAppMenuController"
22 |
23 | var rightItem: UIBarButtonItem = UIBarButtonItem()
24 | rightItem = UIBarButtonItem(title: "Menu", style: .Plain, target: self, action: "menuPressed")
25 | self.navigationItem.rightBarButtonItem = rightItem
26 |
27 | var label = UILabel(frame: self.view.frame)
28 | label.text = "FRONT VIEW"
29 | label.textColor = UIColor.whiteColor()
30 | label.font = UIFont.boldSystemFontOfSize(20)
31 | label.textAlignment = .Center
32 |
33 | self.view.addSubview(label)
34 |
35 | navController = self.navigationController as SwiftAppMenuController
36 | navController.setNavigationBarHidden(false, animated: false)
37 | }
38 |
39 | func menuPressed() -> Void {
40 | navController.openAndCloseMenu()
41 | }
42 | }
--------------------------------------------------------------------------------
/SwiftAppMenuController.xcodeproj/project.xcworkspace/xcshareddata/SwiftAppMenuController.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | 17E616D3-3392-421B-AD83-5CA9975BC79F
9 | IDESourceControlProjectName
10 | SwiftAppMenuController
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | EBF438CC1AB750506F92D046BFD52461F7429FB1
14 | https://github.com/samuelbeek/SwiftAppMenuController.git
15 |
16 | IDESourceControlProjectPath
17 | SwiftAppMenuController.xcodeproj
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | EBF438CC1AB750506F92D046BFD52461F7429FB1
21 | ../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/samuelbeek/SwiftAppMenuController.git
25 | IDESourceControlProjectVersion
26 | 111
27 | IDESourceControlProjectWCCIdentifier
28 | EBF438CC1AB750506F92D046BFD52461F7429FB1
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | EBF438CC1AB750506F92D046BFD52461F7429FB1
36 | IDESourceControlWCCName
37 | SwiftAppMenuController
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | SwiftAppMenuController
2 | ======================
3 |
4 | 
5 |
6 | ## Importing
7 |
8 | import SwiftAppMenuController.swift to your project
9 |
10 | ## How To Use
11 |
12 | In your **AppDelegate.swift** add:
13 |
14 | ```swift
15 | var window: UIWindow?
16 | var backWindow: UIWindow?
17 |
18 | func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
19 |
20 | var str:UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
21 | var _back:BackViewController = str.instantiateViewControllerWithIdentifier("back") as BackViewController
22 |
23 | self.backWindow = UIWindow(frame: UIScreen.mainScreen().bounds)
24 | self.backWindow!.rootViewController = _back
25 | backWindow?.makeKeyAndVisible()
26 |
27 | var _front:SwiftAppMenuController = str.instantiateViewControllerWithIdentifier("front") as SwiftAppMenuController
28 |
29 | self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
30 | self.window!.rootViewController = _front
31 | self.window!.makeKeyAndVisible()
32 |
33 | return true
34 | }
35 | ```
36 |
37 | In your **FrontViewController.swift** declare the following property:
38 |
39 | ```swift
40 | var navController = SwiftAppMenuController()
41 | ```
42 |
43 | and add the following to your `viewDidLoad()`
44 |
45 | ```swift
46 | navController = self.navigationController as SwiftAppMenuController
47 | navController.setNavigationBarHidden(false, animated: false)
48 | ```
49 |
50 | and add the following function:
51 |
52 | ```swift
53 | func menuPressed() -> Void {
54 | navController.openAndCloseMenu()
55 | }
56 | ```
57 |
58 | Please make sure you check how the **Main.storyboard** is set up in the Demo app.
59 |
60 | ## Contact
61 |
62 | Jose Zamudio
63 | - Twitter
64 | - zamudio@outlook.com
65 |
66 | ## Credits
67 |
68 | Gianluca Tursi for GTAppMenuController
69 | - Web Site
70 | - gian.tursi@gmail.com
71 |
--------------------------------------------------------------------------------
/SwiftAppMenuController/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // SwiftAppMenuController
4 | //
5 | // Created by Jose Zamudio on 7/30/14.
6 | // Copyright (c) 2014 zamudio. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 | var backWindow: UIWindow?
16 |
17 | func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
18 |
19 | var str:UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
20 | var _back:BackViewController = str.instantiateViewControllerWithIdentifier("back") as BackViewController
21 |
22 | self.backWindow = UIWindow(frame: UIScreen.mainScreen().bounds)
23 | self.backWindow!.rootViewController = _back
24 | backWindow?.makeKeyAndVisible()
25 |
26 | var _front:SwiftAppMenuController = str.instantiateViewControllerWithIdentifier("front") as SwiftAppMenuController
27 |
28 | self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
29 | self.window!.rootViewController = _front
30 | self.window!.makeKeyAndVisible()
31 |
32 | return true
33 | }
34 |
35 | func applicationWillResignActive(application: UIApplication!) {
36 | // 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.
37 | // 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.
38 | }
39 |
40 | func applicationDidEnterBackground(application: UIApplication!) {
41 | // 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.
42 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
43 | }
44 |
45 | func applicationWillEnterForeground(application: UIApplication!) {
46 | // 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.
47 | }
48 |
49 | func applicationDidBecomeActive(application: UIApplication!) {
50 | // 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.
51 | }
52 |
53 | func applicationWillTerminate(application: UIApplication!) {
54 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
55 | }
56 |
57 |
58 | }
59 |
60 |
--------------------------------------------------------------------------------
/SwiftAppMenuController/SwiftAppMenuController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SwiftAppMenuController.swift
3 | // SwiftAppMenuController
4 | //
5 | // Created by Jose Zamudio on 7/30/14.
6 | // Copyright (c) 2014 zamudio. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import UIKit
11 | let kHeaderHeight : CGFloat = 120
12 |
13 | var newDelegate = AppDelegate()
14 | var window = UIWindow()
15 | var panGesture = UIPanGestureRecognizer()
16 |
17 | class SwiftAppMenuController: UINavigationController {
18 |
19 | var firstX = Float()
20 | var firstY = Float()
21 | var _origin = CGPoint()
22 | var _final = CGPoint()
23 | var duration = CGFloat()
24 |
25 | override func viewDidLoad() {
26 | newDelegate = UIApplication.sharedApplication().delegate as AppDelegate
27 | window = newDelegate.window!
28 | window.layer.shadowRadius = 15
29 | window.layer.shadowOffset = CGSizeMake(0, 0)
30 | window.layer.shadowColor = UIColor.blackColor().CGColor
31 | window.layer.shadowOpacity = 0.8
32 |
33 | duration = 0.3
34 | }
35 |
36 | func activateSwipeToOpenMenu(onlyNavigation: Bool) -> Void {
37 | panGesture = UIPanGestureRecognizer(target: self, action: "onPan")
38 |
39 | if (onlyNavigation == true) {
40 | self.navigationBar.addGestureRecognizer(panGesture)
41 | } else {
42 | window.addGestureRecognizer(panGesture)
43 | }
44 | }
45 |
46 | func openAndCloseMenu() -> Void {
47 | var finalOrigin = CGPoint()
48 | var f = CGRect()
49 |
50 | f = window.frame
51 |
52 | if (f.origin.y == CGPointZero.y) {
53 | finalOrigin.y = CGRectGetHeight(UIScreen.mainScreen().bounds) - kHeaderHeight
54 | } else {
55 | finalOrigin.y = CGPointZero.y
56 | }
57 |
58 | finalOrigin.x = 0
59 | f.origin = finalOrigin
60 | UIView.animateWithDuration(0.3, delay: 0.0, options: .CurveEaseOut, animations: {
61 | window.transform = CGAffineTransformIdentity
62 | window.frame = f
63 | },
64 | completion: nil)
65 | }
66 |
67 | func setAnimationDuration(d:CGFloat) -> Void {
68 | duration = d
69 | }
70 |
71 | func onPan(pan:UIPanGestureRecognizer) -> Void {
72 | var translation:CGPoint = pan.translationInView(window)
73 | var velocity:CGPoint = pan.velocityInView(window)
74 |
75 | switch (pan.state) {
76 | case .Began:
77 | _origin = window.frame.origin
78 | break
79 |
80 | case .Changed:
81 | if (_origin.y + translation.y >= 0) {
82 | if (window.frame.origin.y != CGPointZero.y) {
83 | window.transform = CGAffineTransformMakeTranslation(0, translation.y)
84 | } else {
85 | window.transform = CGAffineTransformMakeTranslation(0, translation.y)
86 | }
87 | }
88 | break
89 |
90 | case .Ended:
91 | break
92 |
93 | case .Cancelled:
94 | var finalOrigin = CGPointZero
95 | if (velocity.y >= 0) {
96 | finalOrigin.y = CGRectGetHeight(UIScreen.mainScreen().bounds) - kHeaderHeight
97 | }
98 |
99 | var f = window.frame
100 | f.origin = finalOrigin
101 | UIView.animateWithDuration(0.3, delay: 0.0, options: .CurveEaseOut, animations: {
102 | window.transform = CGAffineTransformIdentity
103 | window.frame = f
104 | }, completion: nil)
105 | break
106 |
107 | default:
108 | break
109 | }
110 | }
111 |
112 | }
--------------------------------------------------------------------------------
/SwiftAppMenuController.xcodeproj/xcuserdata/Zamudio.xcuserdatad/xcschemes/SwiftAppMenuController.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
61 |
62 |
68 |
69 |
70 |
71 |
72 |
73 |
79 |
80 |
86 |
87 |
88 |
89 |
91 |
92 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/SwiftAppMenuController/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 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/SwiftAppMenuController.xcodeproj/xcuserdata/samuel.xcuserdatad/xcschemes/SwiftAppMenuController.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
47 |
53 |
54 |
55 |
56 |
57 |
63 |
64 |
65 |
66 |
75 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
94 |
100 |
101 |
102 |
103 |
105 |
106 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/SwiftAppMenuController.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 8048C07019899C0C00814470 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8048C06F19899C0C00814470 /* AppDelegate.swift */; };
11 | 8048C07519899C0C00814470 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8048C07319899C0C00814470 /* Main.storyboard */; };
12 | 8048C07719899C0C00814470 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8048C07619899C0C00814470 /* Images.xcassets */; };
13 | 8048C08319899C0C00814470 /* SwiftAppMenuControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8048C08219899C0C00814470 /* SwiftAppMenuControllerTests.swift */; };
14 | 8048C08F19899CEE00814470 /* BackViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8048C08E19899CEE00814470 /* BackViewController.swift */; };
15 | 8048C09119899CFE00814470 /* FrontViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8048C09019899CFE00814470 /* FrontViewController.swift */; };
16 | 8048C0951989A01E00814470 /* SwiftAppMenuController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8048C0941989A01E00814470 /* SwiftAppMenuController.swift */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXContainerItemProxy section */
20 | 8048C07D19899C0C00814470 /* PBXContainerItemProxy */ = {
21 | isa = PBXContainerItemProxy;
22 | containerPortal = 8048C06219899C0C00814470 /* Project object */;
23 | proxyType = 1;
24 | remoteGlobalIDString = 8048C06919899C0C00814470;
25 | remoteInfo = SwiftAppMenuController;
26 | };
27 | /* End PBXContainerItemProxy section */
28 |
29 | /* Begin PBXFileReference section */
30 | 8048C06A19899C0C00814470 /* SwiftAppMenuController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftAppMenuController.app; sourceTree = BUILT_PRODUCTS_DIR; };
31 | 8048C06E19899C0C00814470 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
32 | 8048C06F19899C0C00814470 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
33 | 8048C07419899C0C00814470 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
34 | 8048C07619899C0C00814470 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
35 | 8048C07C19899C0C00814470 /* SwiftAppMenuControllerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SwiftAppMenuControllerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
36 | 8048C08119899C0C00814470 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
37 | 8048C08219899C0C00814470 /* SwiftAppMenuControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftAppMenuControllerTests.swift; sourceTree = ""; };
38 | 8048C08E19899CEE00814470 /* BackViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BackViewController.swift; sourceTree = ""; };
39 | 8048C09019899CFE00814470 /* FrontViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FrontViewController.swift; sourceTree = ""; };
40 | 8048C0941989A01E00814470 /* SwiftAppMenuController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftAppMenuController.swift; sourceTree = ""; };
41 | /* End PBXFileReference section */
42 |
43 | /* Begin PBXFrameworksBuildPhase section */
44 | 8048C06719899C0C00814470 /* Frameworks */ = {
45 | isa = PBXFrameworksBuildPhase;
46 | buildActionMask = 2147483647;
47 | files = (
48 | );
49 | runOnlyForDeploymentPostprocessing = 0;
50 | };
51 | 8048C07919899C0C00814470 /* Frameworks */ = {
52 | isa = PBXFrameworksBuildPhase;
53 | buildActionMask = 2147483647;
54 | files = (
55 | );
56 | runOnlyForDeploymentPostprocessing = 0;
57 | };
58 | /* End PBXFrameworksBuildPhase section */
59 |
60 | /* Begin PBXGroup section */
61 | 8048C06119899C0B00814470 = {
62 | isa = PBXGroup;
63 | children = (
64 | 8048C06C19899C0C00814470 /* SwiftAppMenuController */,
65 | 8048C07F19899C0C00814470 /* SwiftAppMenuControllerTests */,
66 | 8048C06B19899C0C00814470 /* Products */,
67 | );
68 | sourceTree = "";
69 | };
70 | 8048C06B19899C0C00814470 /* Products */ = {
71 | isa = PBXGroup;
72 | children = (
73 | 8048C06A19899C0C00814470 /* SwiftAppMenuController.app */,
74 | 8048C07C19899C0C00814470 /* SwiftAppMenuControllerTests.xctest */,
75 | );
76 | name = Products;
77 | sourceTree = "";
78 | };
79 | 8048C06C19899C0C00814470 /* SwiftAppMenuController */ = {
80 | isa = PBXGroup;
81 | children = (
82 | 8048C0941989A01E00814470 /* SwiftAppMenuController.swift */,
83 | 8048C06F19899C0C00814470 /* AppDelegate.swift */,
84 | 8048C08E19899CEE00814470 /* BackViewController.swift */,
85 | 8048C09019899CFE00814470 /* FrontViewController.swift */,
86 | 8048C07319899C0C00814470 /* Main.storyboard */,
87 | 8048C07619899C0C00814470 /* Images.xcassets */,
88 | 8048C06D19899C0C00814470 /* Supporting Files */,
89 | );
90 | path = SwiftAppMenuController;
91 | sourceTree = "";
92 | };
93 | 8048C06D19899C0C00814470 /* Supporting Files */ = {
94 | isa = PBXGroup;
95 | children = (
96 | 8048C06E19899C0C00814470 /* Info.plist */,
97 | );
98 | name = "Supporting Files";
99 | sourceTree = "";
100 | };
101 | 8048C07F19899C0C00814470 /* SwiftAppMenuControllerTests */ = {
102 | isa = PBXGroup;
103 | children = (
104 | 8048C08219899C0C00814470 /* SwiftAppMenuControllerTests.swift */,
105 | 8048C08019899C0C00814470 /* Supporting Files */,
106 | );
107 | path = SwiftAppMenuControllerTests;
108 | sourceTree = "";
109 | };
110 | 8048C08019899C0C00814470 /* Supporting Files */ = {
111 | isa = PBXGroup;
112 | children = (
113 | 8048C08119899C0C00814470 /* Info.plist */,
114 | );
115 | name = "Supporting Files";
116 | sourceTree = "";
117 | };
118 | /* End PBXGroup section */
119 |
120 | /* Begin PBXNativeTarget section */
121 | 8048C06919899C0C00814470 /* SwiftAppMenuController */ = {
122 | isa = PBXNativeTarget;
123 | buildConfigurationList = 8048C08619899C0C00814470 /* Build configuration list for PBXNativeTarget "SwiftAppMenuController" */;
124 | buildPhases = (
125 | 8048C06619899C0C00814470 /* Sources */,
126 | 8048C06719899C0C00814470 /* Frameworks */,
127 | 8048C06819899C0C00814470 /* Resources */,
128 | );
129 | buildRules = (
130 | );
131 | dependencies = (
132 | );
133 | name = SwiftAppMenuController;
134 | productName = SwiftAppMenuController;
135 | productReference = 8048C06A19899C0C00814470 /* SwiftAppMenuController.app */;
136 | productType = "com.apple.product-type.application";
137 | };
138 | 8048C07B19899C0C00814470 /* SwiftAppMenuControllerTests */ = {
139 | isa = PBXNativeTarget;
140 | buildConfigurationList = 8048C08919899C0C00814470 /* Build configuration list for PBXNativeTarget "SwiftAppMenuControllerTests" */;
141 | buildPhases = (
142 | 8048C07819899C0C00814470 /* Sources */,
143 | 8048C07919899C0C00814470 /* Frameworks */,
144 | 8048C07A19899C0C00814470 /* Resources */,
145 | );
146 | buildRules = (
147 | );
148 | dependencies = (
149 | 8048C07E19899C0C00814470 /* PBXTargetDependency */,
150 | );
151 | name = SwiftAppMenuControllerTests;
152 | productName = SwiftAppMenuControllerTests;
153 | productReference = 8048C07C19899C0C00814470 /* SwiftAppMenuControllerTests.xctest */;
154 | productType = "com.apple.product-type.bundle.unit-test";
155 | };
156 | /* End PBXNativeTarget section */
157 |
158 | /* Begin PBXProject section */
159 | 8048C06219899C0C00814470 /* Project object */ = {
160 | isa = PBXProject;
161 | attributes = {
162 | LastUpgradeCheck = 0600;
163 | ORGANIZATIONNAME = zamudio;
164 | TargetAttributes = {
165 | 8048C06919899C0C00814470 = {
166 | CreatedOnToolsVersion = 6.0;
167 | };
168 | 8048C07B19899C0C00814470 = {
169 | CreatedOnToolsVersion = 6.0;
170 | TestTargetID = 8048C06919899C0C00814470;
171 | };
172 | };
173 | };
174 | buildConfigurationList = 8048C06519899C0C00814470 /* Build configuration list for PBXProject "SwiftAppMenuController" */;
175 | compatibilityVersion = "Xcode 3.2";
176 | developmentRegion = English;
177 | hasScannedForEncodings = 0;
178 | knownRegions = (
179 | en,
180 | Base,
181 | );
182 | mainGroup = 8048C06119899C0B00814470;
183 | productRefGroup = 8048C06B19899C0C00814470 /* Products */;
184 | projectDirPath = "";
185 | projectRoot = "";
186 | targets = (
187 | 8048C06919899C0C00814470 /* SwiftAppMenuController */,
188 | 8048C07B19899C0C00814470 /* SwiftAppMenuControllerTests */,
189 | );
190 | };
191 | /* End PBXProject section */
192 |
193 | /* Begin PBXResourcesBuildPhase section */
194 | 8048C06819899C0C00814470 /* Resources */ = {
195 | isa = PBXResourcesBuildPhase;
196 | buildActionMask = 2147483647;
197 | files = (
198 | 8048C07519899C0C00814470 /* Main.storyboard in Resources */,
199 | 8048C07719899C0C00814470 /* Images.xcassets in Resources */,
200 | );
201 | runOnlyForDeploymentPostprocessing = 0;
202 | };
203 | 8048C07A19899C0C00814470 /* Resources */ = {
204 | isa = PBXResourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | );
208 | runOnlyForDeploymentPostprocessing = 0;
209 | };
210 | /* End PBXResourcesBuildPhase section */
211 |
212 | /* Begin PBXSourcesBuildPhase section */
213 | 8048C06619899C0C00814470 /* Sources */ = {
214 | isa = PBXSourcesBuildPhase;
215 | buildActionMask = 2147483647;
216 | files = (
217 | 8048C09119899CFE00814470 /* FrontViewController.swift in Sources */,
218 | 8048C07019899C0C00814470 /* AppDelegate.swift in Sources */,
219 | 8048C0951989A01E00814470 /* SwiftAppMenuController.swift in Sources */,
220 | 8048C08F19899CEE00814470 /* BackViewController.swift in Sources */,
221 | );
222 | runOnlyForDeploymentPostprocessing = 0;
223 | };
224 | 8048C07819899C0C00814470 /* Sources */ = {
225 | isa = PBXSourcesBuildPhase;
226 | buildActionMask = 2147483647;
227 | files = (
228 | 8048C08319899C0C00814470 /* SwiftAppMenuControllerTests.swift in Sources */,
229 | );
230 | runOnlyForDeploymentPostprocessing = 0;
231 | };
232 | /* End PBXSourcesBuildPhase section */
233 |
234 | /* Begin PBXTargetDependency section */
235 | 8048C07E19899C0C00814470 /* PBXTargetDependency */ = {
236 | isa = PBXTargetDependency;
237 | target = 8048C06919899C0C00814470 /* SwiftAppMenuController */;
238 | targetProxy = 8048C07D19899C0C00814470 /* PBXContainerItemProxy */;
239 | };
240 | /* End PBXTargetDependency section */
241 |
242 | /* Begin PBXVariantGroup section */
243 | 8048C07319899C0C00814470 /* Main.storyboard */ = {
244 | isa = PBXVariantGroup;
245 | children = (
246 | 8048C07419899C0C00814470 /* Base */,
247 | );
248 | name = Main.storyboard;
249 | sourceTree = "";
250 | };
251 | /* End PBXVariantGroup section */
252 |
253 | /* Begin XCBuildConfiguration section */
254 | 8048C08419899C0C00814470 /* Debug */ = {
255 | isa = XCBuildConfiguration;
256 | buildSettings = {
257 | ALWAYS_SEARCH_USER_PATHS = NO;
258 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
259 | CLANG_CXX_LIBRARY = "libc++";
260 | CLANG_ENABLE_MODULES = YES;
261 | CLANG_ENABLE_OBJC_ARC = YES;
262 | CLANG_WARN_BOOL_CONVERSION = YES;
263 | CLANG_WARN_CONSTANT_CONVERSION = YES;
264 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
265 | CLANG_WARN_EMPTY_BODY = YES;
266 | CLANG_WARN_ENUM_CONVERSION = YES;
267 | CLANG_WARN_INT_CONVERSION = YES;
268 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
269 | CLANG_WARN_UNREACHABLE_CODE = YES;
270 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
271 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
272 | COPY_PHASE_STRIP = NO;
273 | ENABLE_STRICT_OBJC_MSGSEND = YES;
274 | GCC_C_LANGUAGE_STANDARD = gnu99;
275 | GCC_DYNAMIC_NO_PIC = NO;
276 | GCC_OPTIMIZATION_LEVEL = 0;
277 | GCC_PREPROCESSOR_DEFINITIONS = (
278 | "DEBUG=1",
279 | "$(inherited)",
280 | );
281 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
282 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
283 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
284 | GCC_WARN_UNDECLARED_SELECTOR = YES;
285 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
286 | GCC_WARN_UNUSED_FUNCTION = YES;
287 | GCC_WARN_UNUSED_VARIABLE = YES;
288 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
289 | MTL_ENABLE_DEBUG_INFO = YES;
290 | ONLY_ACTIVE_ARCH = YES;
291 | SDKROOT = iphoneos;
292 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
293 | };
294 | name = Debug;
295 | };
296 | 8048C08519899C0C00814470 /* Release */ = {
297 | isa = XCBuildConfiguration;
298 | buildSettings = {
299 | ALWAYS_SEARCH_USER_PATHS = NO;
300 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
301 | CLANG_CXX_LIBRARY = "libc++";
302 | CLANG_ENABLE_MODULES = YES;
303 | CLANG_ENABLE_OBJC_ARC = YES;
304 | CLANG_WARN_BOOL_CONVERSION = YES;
305 | CLANG_WARN_CONSTANT_CONVERSION = YES;
306 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
307 | CLANG_WARN_EMPTY_BODY = YES;
308 | CLANG_WARN_ENUM_CONVERSION = YES;
309 | CLANG_WARN_INT_CONVERSION = YES;
310 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
311 | CLANG_WARN_UNREACHABLE_CODE = YES;
312 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
313 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
314 | COPY_PHASE_STRIP = YES;
315 | ENABLE_NS_ASSERTIONS = NO;
316 | ENABLE_STRICT_OBJC_MSGSEND = YES;
317 | GCC_C_LANGUAGE_STANDARD = gnu99;
318 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
319 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
320 | GCC_WARN_UNDECLARED_SELECTOR = YES;
321 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
322 | GCC_WARN_UNUSED_FUNCTION = YES;
323 | GCC_WARN_UNUSED_VARIABLE = YES;
324 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
325 | MTL_ENABLE_DEBUG_INFO = NO;
326 | SDKROOT = iphoneos;
327 | VALIDATE_PRODUCT = YES;
328 | };
329 | name = Release;
330 | };
331 | 8048C08719899C0C00814470 /* Debug */ = {
332 | isa = XCBuildConfiguration;
333 | buildSettings = {
334 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
335 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
336 | INFOPLIST_FILE = SwiftAppMenuController/Info.plist;
337 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
338 | PRODUCT_NAME = "$(TARGET_NAME)";
339 | };
340 | name = Debug;
341 | };
342 | 8048C08819899C0C00814470 /* Release */ = {
343 | isa = XCBuildConfiguration;
344 | buildSettings = {
345 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
346 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
347 | INFOPLIST_FILE = SwiftAppMenuController/Info.plist;
348 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
349 | PRODUCT_NAME = "$(TARGET_NAME)";
350 | };
351 | name = Release;
352 | };
353 | 8048C08A19899C0C00814470 /* Debug */ = {
354 | isa = XCBuildConfiguration;
355 | buildSettings = {
356 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SwiftAppMenuController.app/SwiftAppMenuController";
357 | FRAMEWORK_SEARCH_PATHS = (
358 | "$(SDKROOT)/Developer/Library/Frameworks",
359 | "$(inherited)",
360 | );
361 | GCC_PREPROCESSOR_DEFINITIONS = (
362 | "DEBUG=1",
363 | "$(inherited)",
364 | );
365 | INFOPLIST_FILE = SwiftAppMenuControllerTests/Info.plist;
366 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
367 | PRODUCT_NAME = "$(TARGET_NAME)";
368 | TEST_HOST = "$(BUNDLE_LOADER)";
369 | };
370 | name = Debug;
371 | };
372 | 8048C08B19899C0C00814470 /* Release */ = {
373 | isa = XCBuildConfiguration;
374 | buildSettings = {
375 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SwiftAppMenuController.app/SwiftAppMenuController";
376 | FRAMEWORK_SEARCH_PATHS = (
377 | "$(SDKROOT)/Developer/Library/Frameworks",
378 | "$(inherited)",
379 | );
380 | INFOPLIST_FILE = SwiftAppMenuControllerTests/Info.plist;
381 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
382 | PRODUCT_NAME = "$(TARGET_NAME)";
383 | TEST_HOST = "$(BUNDLE_LOADER)";
384 | };
385 | name = Release;
386 | };
387 | /* End XCBuildConfiguration section */
388 |
389 | /* Begin XCConfigurationList section */
390 | 8048C06519899C0C00814470 /* Build configuration list for PBXProject "SwiftAppMenuController" */ = {
391 | isa = XCConfigurationList;
392 | buildConfigurations = (
393 | 8048C08419899C0C00814470 /* Debug */,
394 | 8048C08519899C0C00814470 /* Release */,
395 | );
396 | defaultConfigurationIsVisible = 0;
397 | defaultConfigurationName = Release;
398 | };
399 | 8048C08619899C0C00814470 /* Build configuration list for PBXNativeTarget "SwiftAppMenuController" */ = {
400 | isa = XCConfigurationList;
401 | buildConfigurations = (
402 | 8048C08719899C0C00814470 /* Debug */,
403 | 8048C08819899C0C00814470 /* Release */,
404 | );
405 | defaultConfigurationIsVisible = 0;
406 | };
407 | 8048C08919899C0C00814470 /* Build configuration list for PBXNativeTarget "SwiftAppMenuControllerTests" */ = {
408 | isa = XCConfigurationList;
409 | buildConfigurations = (
410 | 8048C08A19899C0C00814470 /* Debug */,
411 | 8048C08B19899C0C00814470 /* Release */,
412 | );
413 | defaultConfigurationIsVisible = 0;
414 | };
415 | /* End XCConfigurationList section */
416 | };
417 | rootObject = 8048C06219899C0C00814470 /* Project object */;
418 | }
419 |
--------------------------------------------------------------------------------