├── _config.yml
├── .DS_Store
├── SwipeRightToPopController.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
├── SwipeRightToPopController
├── ViewController.swift
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── AppDelegate.swift
├── SlideAnimatedTransitioning.swift
└── SwipeRightToPopViewController.swift
├── README.md
├── LICENSE
└── .gitignore
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-hacker
--------------------------------------------------------------------------------
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rishi420/SwipeRightToPopController/HEAD/.DS_Store
--------------------------------------------------------------------------------
/SwipeRightToPopController.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SwipeRightToPopController/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // SwipeRightToPopController
4 | //
5 | // Created by Warif Akhand Rishi on 2/19/16.
6 | // Copyright © 2016 Warif Akhand Rishi. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | override func viewDidLoad() {
14 | super.viewDidLoad()
15 | // Do any additional setup after loading the view, typically from a nib.
16 | }
17 |
18 | override func didReceiveMemoryWarning() {
19 | super.didReceiveMemoryWarning()
20 | // Dispose of any resources that can be recreated.
21 | }
22 |
23 |
24 | }
25 |
26 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SwipeRightToPopController
2 | When user drags right (anywhere on the viewController), it pops the viewController
3 |
4 |

5 |
6 |
7 | To answer this question:
8 |
9 | http://stackoverflow.com/q/35388985/1378447
10 |
11 | **How can I implement "drag right to dismiss" a View Controller that's in a navigation stack?**
12 |
13 | By default, if you drag right from the left edge of the screen, it will drag away the ViewController and take it off the stack.
14 |
15 | I want to extend this functionality to the entire screen. When the user drags right anywhere, I'd like the same to happen.
16 |
17 | I know that I can implement a swipe right gesture and simply call self.navigationController?.popViewControllerAnimated(true)
18 |
19 | However, there is no "dragging" motion. I want the user to be able to right-drag the view controller as if it's an object, revealing what's underneath. And, if it's dragged past 50%, dismiss it. (Check out instagram to see what I mean.)
20 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Warif Akhand Rishi
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 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata
19 |
20 | ## Other
21 | *.xccheckout
22 | *.moved-aside
23 | *.xcuserstate
24 | *.xcscmblueprint
25 |
26 | ## Obj-C/Swift specific
27 | *.hmap
28 | *.ipa
29 |
30 | ## Playgrounds
31 | timeline.xctimeline
32 | playground.xcworkspace
33 |
34 | # Swift Package Manager
35 | #
36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
37 | # Packages/
38 | .build/
39 |
40 | # CocoaPods
41 | #
42 | # We recommend against adding the Pods directory to your .gitignore. However
43 | # you should judge for yourself, the pros and cons are mentioned at:
44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
45 | #
46 | # Pods/
47 |
48 | # Carthage
49 | #
50 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
51 | # Carthage/Checkouts
52 |
53 | Carthage/Build
54 |
55 | # fastlane
56 | #
57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
58 | # screenshots whenever they are needed.
59 | # For more information about the recommended setup visit:
60 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
61 |
62 | fastlane/report.xml
63 | fastlane/screenshots
64 |
--------------------------------------------------------------------------------
/SwipeRightToPopController/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
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 |
--------------------------------------------------------------------------------
/SwipeRightToPopController/Base.lproj/LaunchScreen.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 |
--------------------------------------------------------------------------------
/SwipeRightToPopController/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | }
88 | ],
89 | "info" : {
90 | "version" : 1,
91 | "author" : "xcode"
92 | }
93 | }
--------------------------------------------------------------------------------
/SwipeRightToPopController/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // SwipeRightToPopController
4 | //
5 | // Created by Warif Akhand Rishi on 2/19/16.
6 | // Copyright © 2016 Warif Akhand Rishi. 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: [UIApplicationLaunchOptionsKey: Any]?) -> 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 |
--------------------------------------------------------------------------------
/SwipeRightToPopController/SlideAnimatedTransitioning.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SlideAnimatedTransitioning.swift
3 | // SwipeRightToPopController
4 | //
5 | // Created by Warif Akhand Rishi on 2/19/16.
6 | // Copyright © 2016 Warif Akhand Rishi. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class SlideAnimatedTransitioning: NSObject {
12 |
13 | }
14 |
15 | extension SlideAnimatedTransitioning: UIViewControllerAnimatedTransitioning {
16 |
17 | func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {
18 |
19 | let containerView = transitionContext.containerView
20 | let fromView = transitionContext.viewController(forKey: UITransitionContextViewControllerKey.from)!.view
21 | let toView = transitionContext.viewController(forKey: UITransitionContextViewControllerKey.to)!.view
22 |
23 | let width = containerView.frame.width
24 |
25 | var offsetLeft = fromView?.frame
26 | offsetLeft?.origin.x = width
27 |
28 | var offscreenRight = toView?.frame
29 | offscreenRight?.origin.x = -width / 3.33;
30 |
31 | toView?.frame = offscreenRight!;
32 |
33 | fromView?.layer.shadowRadius = 5.0
34 | fromView?.layer.shadowOpacity = 1.0
35 | toView?.layer.opacity = 0.9
36 |
37 | containerView.insertSubview(toView!, belowSubview: fromView!)
38 |
39 | UIView.animate(withDuration: transitionDuration(using: transitionContext), delay:0, options:.curveLinear, animations:{
40 |
41 | toView?.frame = (fromView?.frame)!
42 | fromView?.frame = offsetLeft!
43 |
44 | toView?.layer.opacity = 1.0
45 | fromView?.layer.shadowOpacity = 0.1
46 |
47 | }, completion: { finished in
48 | toView?.layer.opacity = 1.0
49 | toView?.layer.shadowOpacity = 0
50 | fromView?.layer.opacity = 1.0
51 | fromView?.layer.shadowOpacity = 0
52 |
53 | // when cancelling or completing the animation, ios simulator seems to sometimes flash black backgrounds during the animation. on devices, this doesn't seem to happen though.
54 | // containerView.backgroundColor = [UIColor whiteColor];
55 | transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
56 | })
57 | }
58 |
59 | func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval {
60 |
61 | return 0.3
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/SwipeRightToPopController/SwipeRightToPopViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SwipeRightToPopViewController.swift
3 | // SwipeRightToPopController
4 | //
5 | // Created by Warif Akhand Rishi on 2/19/16.
6 | // Copyright © 2016 Warif Akhand Rishi. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | fileprivate func < (lhs: T?, rhs: T?) -> Bool {
11 | switch (lhs, rhs) {
12 | case let (l?, r?):
13 | return l < r
14 | case (nil, _?):
15 | return true
16 | default:
17 | return false
18 | }
19 | }
20 |
21 | fileprivate func > (lhs: T?, rhs: T?) -> Bool {
22 | switch (lhs, rhs) {
23 | case let (l?, r?):
24 | return l > r
25 | default:
26 | return rhs < lhs
27 | }
28 | }
29 |
30 |
31 | class SwipeRightToPopViewController: UIViewController {
32 |
33 | var percentDrivenInteractiveTransition: UIPercentDrivenInteractiveTransition!
34 | var panGestureRecognizer: UIPanGestureRecognizer!
35 |
36 | override func viewDidLoad() {
37 | super.viewDidLoad()
38 |
39 | addGesture()
40 | }
41 |
42 | func addGesture() {
43 |
44 | guard navigationController?.viewControllers.count > 1 else {
45 | return
46 | }
47 |
48 | panGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(SwipeRightToPopViewController.handlePanGesture(_:)))
49 | self.view.addGestureRecognizer(panGestureRecognizer)
50 | }
51 |
52 | func handlePanGesture(_ panGesture: UIPanGestureRecognizer) {
53 |
54 | let percent = max(panGesture.translation(in: view).x, 0) / view.frame.width
55 |
56 | switch panGesture.state {
57 |
58 | case .began:
59 | navigationController?.delegate = self
60 | _ = navigationController?.popViewController(animated: true)
61 |
62 | case .changed:
63 | if let percentDrivenInteractiveTransition = percentDrivenInteractiveTransition {
64 | percentDrivenInteractiveTransition.update(percent)
65 | }
66 |
67 | case .ended:
68 | let velocity = panGesture.velocity(in: view).x
69 |
70 | // Continue if drag more than 50% of screen width or velocity is higher than 1000
71 | if percent > 0.5 || velocity > 1000 {
72 | percentDrivenInteractiveTransition.finish()
73 | } else {
74 | percentDrivenInteractiveTransition.cancel()
75 | }
76 |
77 | case .cancelled, .failed:
78 | percentDrivenInteractiveTransition.cancel()
79 |
80 | default:
81 | break
82 | }
83 | }
84 |
85 | override func didReceiveMemoryWarning() {
86 | super.didReceiveMemoryWarning()
87 | }
88 | }
89 |
90 |
91 | extension SwipeRightToPopViewController: UINavigationControllerDelegate {
92 |
93 | func navigationController(_ navigationController: UINavigationController, animationControllerFor operation: UINavigationControllerOperation, from fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
94 |
95 | return SlideAnimatedTransitioning()
96 | }
97 |
98 | func navigationController(_ navigationController: UINavigationController, interactionControllerFor animationController: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? {
99 |
100 | navigationController.delegate = nil
101 |
102 | if panGestureRecognizer.state == .began {
103 | percentDrivenInteractiveTransition = UIPercentDrivenInteractiveTransition()
104 | percentDrivenInteractiveTransition.completionCurve = .easeOut
105 | } else {
106 | percentDrivenInteractiveTransition = nil
107 | }
108 |
109 | return percentDrivenInteractiveTransition
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/SwipeRightToPopController/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 |
26 |
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 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/SwipeRightToPopController.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | BC00E6E81C7728130029C63E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC00E6E71C7728130029C63E /* AppDelegate.swift */; };
11 | BC00E6EA1C7728130029C63E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC00E6E91C7728130029C63E /* ViewController.swift */; };
12 | BC00E6ED1C7728130029C63E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BC00E6EB1C7728130029C63E /* Main.storyboard */; };
13 | BC00E6EF1C7728130029C63E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BC00E6EE1C7728130029C63E /* Assets.xcassets */; };
14 | BC00E6F21C7728130029C63E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BC00E6F01C7728130029C63E /* LaunchScreen.storyboard */; };
15 | BC00E6FA1C77289E0029C63E /* SwipeRightToPopViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC00E6F91C77289E0029C63E /* SwipeRightToPopViewController.swift */; };
16 | BC00E6FC1C7737A70029C63E /* SlideAnimatedTransitioning.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC00E6FB1C7737A70029C63E /* SlideAnimatedTransitioning.swift */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXFileReference section */
20 | BC00E6E41C7728130029C63E /* SwipeRightToPopController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwipeRightToPopController.app; sourceTree = BUILT_PRODUCTS_DIR; };
21 | BC00E6E71C7728130029C63E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
22 | BC00E6E91C7728130029C63E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
23 | BC00E6EC1C7728130029C63E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
24 | BC00E6EE1C7728130029C63E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
25 | BC00E6F11C7728130029C63E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
26 | BC00E6F31C7728130029C63E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
27 | BC00E6F91C77289E0029C63E /* SwipeRightToPopViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwipeRightToPopViewController.swift; sourceTree = ""; };
28 | BC00E6FB1C7737A70029C63E /* SlideAnimatedTransitioning.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SlideAnimatedTransitioning.swift; sourceTree = ""; };
29 | /* End PBXFileReference section */
30 |
31 | /* Begin PBXFrameworksBuildPhase section */
32 | BC00E6E11C7728130029C63E /* Frameworks */ = {
33 | isa = PBXFrameworksBuildPhase;
34 | buildActionMask = 2147483647;
35 | files = (
36 | );
37 | runOnlyForDeploymentPostprocessing = 0;
38 | };
39 | /* End PBXFrameworksBuildPhase section */
40 |
41 | /* Begin PBXGroup section */
42 | BC00E6DB1C7728130029C63E = {
43 | isa = PBXGroup;
44 | children = (
45 | BC00E6E61C7728130029C63E /* SwipeRightToPopController */,
46 | BC00E6E51C7728130029C63E /* Products */,
47 | );
48 | sourceTree = "";
49 | };
50 | BC00E6E51C7728130029C63E /* Products */ = {
51 | isa = PBXGroup;
52 | children = (
53 | BC00E6E41C7728130029C63E /* SwipeRightToPopController.app */,
54 | );
55 | name = Products;
56 | sourceTree = "";
57 | };
58 | BC00E6E61C7728130029C63E /* SwipeRightToPopController */ = {
59 | isa = PBXGroup;
60 | children = (
61 | BC00E6E71C7728130029C63E /* AppDelegate.swift */,
62 | BC00E6E91C7728130029C63E /* ViewController.swift */,
63 | BC00E6F91C77289E0029C63E /* SwipeRightToPopViewController.swift */,
64 | BC00E6FB1C7737A70029C63E /* SlideAnimatedTransitioning.swift */,
65 | BC00E6EB1C7728130029C63E /* Main.storyboard */,
66 | BC00E6EE1C7728130029C63E /* Assets.xcassets */,
67 | BC00E6F01C7728130029C63E /* LaunchScreen.storyboard */,
68 | BC00E6F31C7728130029C63E /* Info.plist */,
69 | );
70 | path = SwipeRightToPopController;
71 | sourceTree = "";
72 | };
73 | /* End PBXGroup section */
74 |
75 | /* Begin PBXNativeTarget section */
76 | BC00E6E31C7728130029C63E /* SwipeRightToPopController */ = {
77 | isa = PBXNativeTarget;
78 | buildConfigurationList = BC00E6F61C7728130029C63E /* Build configuration list for PBXNativeTarget "SwipeRightToPopController" */;
79 | buildPhases = (
80 | BC00E6E01C7728130029C63E /* Sources */,
81 | BC00E6E11C7728130029C63E /* Frameworks */,
82 | BC00E6E21C7728130029C63E /* Resources */,
83 | );
84 | buildRules = (
85 | );
86 | dependencies = (
87 | );
88 | name = SwipeRightToPopController;
89 | productName = SwipeRightToPopController;
90 | productReference = BC00E6E41C7728130029C63E /* SwipeRightToPopController.app */;
91 | productType = "com.apple.product-type.application";
92 | };
93 | /* End PBXNativeTarget section */
94 |
95 | /* Begin PBXProject section */
96 | BC00E6DC1C7728130029C63E /* Project object */ = {
97 | isa = PBXProject;
98 | attributes = {
99 | LastSwiftUpdateCheck = 0720;
100 | LastUpgradeCheck = 0800;
101 | ORGANIZATIONNAME = "Warif Akhand Rishi";
102 | TargetAttributes = {
103 | BC00E6E31C7728130029C63E = {
104 | CreatedOnToolsVersion = 7.2;
105 | LastSwiftMigration = 0800;
106 | };
107 | };
108 | };
109 | buildConfigurationList = BC00E6DF1C7728130029C63E /* Build configuration list for PBXProject "SwipeRightToPopController" */;
110 | compatibilityVersion = "Xcode 3.2";
111 | developmentRegion = English;
112 | hasScannedForEncodings = 0;
113 | knownRegions = (
114 | en,
115 | Base,
116 | );
117 | mainGroup = BC00E6DB1C7728130029C63E;
118 | productRefGroup = BC00E6E51C7728130029C63E /* Products */;
119 | projectDirPath = "";
120 | projectRoot = "";
121 | targets = (
122 | BC00E6E31C7728130029C63E /* SwipeRightToPopController */,
123 | );
124 | };
125 | /* End PBXProject section */
126 |
127 | /* Begin PBXResourcesBuildPhase section */
128 | BC00E6E21C7728130029C63E /* Resources */ = {
129 | isa = PBXResourcesBuildPhase;
130 | buildActionMask = 2147483647;
131 | files = (
132 | BC00E6F21C7728130029C63E /* LaunchScreen.storyboard in Resources */,
133 | BC00E6EF1C7728130029C63E /* Assets.xcassets in Resources */,
134 | BC00E6ED1C7728130029C63E /* Main.storyboard in Resources */,
135 | );
136 | runOnlyForDeploymentPostprocessing = 0;
137 | };
138 | /* End PBXResourcesBuildPhase section */
139 |
140 | /* Begin PBXSourcesBuildPhase section */
141 | BC00E6E01C7728130029C63E /* Sources */ = {
142 | isa = PBXSourcesBuildPhase;
143 | buildActionMask = 2147483647;
144 | files = (
145 | BC00E6FC1C7737A70029C63E /* SlideAnimatedTransitioning.swift in Sources */,
146 | BC00E6FA1C77289E0029C63E /* SwipeRightToPopViewController.swift in Sources */,
147 | BC00E6EA1C7728130029C63E /* ViewController.swift in Sources */,
148 | BC00E6E81C7728130029C63E /* AppDelegate.swift in Sources */,
149 | );
150 | runOnlyForDeploymentPostprocessing = 0;
151 | };
152 | /* End PBXSourcesBuildPhase section */
153 |
154 | /* Begin PBXVariantGroup section */
155 | BC00E6EB1C7728130029C63E /* Main.storyboard */ = {
156 | isa = PBXVariantGroup;
157 | children = (
158 | BC00E6EC1C7728130029C63E /* Base */,
159 | );
160 | name = Main.storyboard;
161 | sourceTree = "";
162 | };
163 | BC00E6F01C7728130029C63E /* LaunchScreen.storyboard */ = {
164 | isa = PBXVariantGroup;
165 | children = (
166 | BC00E6F11C7728130029C63E /* Base */,
167 | );
168 | name = LaunchScreen.storyboard;
169 | sourceTree = "";
170 | };
171 | /* End PBXVariantGroup section */
172 |
173 | /* Begin XCBuildConfiguration section */
174 | BC00E6F41C7728130029C63E /* Debug */ = {
175 | isa = XCBuildConfiguration;
176 | buildSettings = {
177 | ALWAYS_SEARCH_USER_PATHS = NO;
178 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
179 | CLANG_CXX_LIBRARY = "libc++";
180 | CLANG_ENABLE_MODULES = YES;
181 | CLANG_ENABLE_OBJC_ARC = YES;
182 | CLANG_WARN_BOOL_CONVERSION = YES;
183 | CLANG_WARN_CONSTANT_CONVERSION = YES;
184 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
185 | CLANG_WARN_EMPTY_BODY = YES;
186 | CLANG_WARN_ENUM_CONVERSION = YES;
187 | CLANG_WARN_INFINITE_RECURSION = YES;
188 | CLANG_WARN_INT_CONVERSION = YES;
189 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
190 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
191 | CLANG_WARN_UNREACHABLE_CODE = YES;
192 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
193 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
194 | COPY_PHASE_STRIP = NO;
195 | DEBUG_INFORMATION_FORMAT = dwarf;
196 | ENABLE_STRICT_OBJC_MSGSEND = YES;
197 | ENABLE_TESTABILITY = YES;
198 | GCC_C_LANGUAGE_STANDARD = gnu99;
199 | GCC_DYNAMIC_NO_PIC = NO;
200 | GCC_NO_COMMON_BLOCKS = YES;
201 | GCC_OPTIMIZATION_LEVEL = 0;
202 | GCC_PREPROCESSOR_DEFINITIONS = (
203 | "DEBUG=1",
204 | "$(inherited)",
205 | );
206 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
207 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
208 | GCC_WARN_UNDECLARED_SELECTOR = YES;
209 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
210 | GCC_WARN_UNUSED_FUNCTION = YES;
211 | GCC_WARN_UNUSED_VARIABLE = YES;
212 | IPHONEOS_DEPLOYMENT_TARGET = 9.2;
213 | MTL_ENABLE_DEBUG_INFO = YES;
214 | ONLY_ACTIVE_ARCH = YES;
215 | SDKROOT = iphoneos;
216 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
217 | TARGETED_DEVICE_FAMILY = "1,2";
218 | };
219 | name = Debug;
220 | };
221 | BC00E6F51C7728130029C63E /* Release */ = {
222 | isa = XCBuildConfiguration;
223 | buildSettings = {
224 | ALWAYS_SEARCH_USER_PATHS = NO;
225 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
226 | CLANG_CXX_LIBRARY = "libc++";
227 | CLANG_ENABLE_MODULES = YES;
228 | CLANG_ENABLE_OBJC_ARC = YES;
229 | CLANG_WARN_BOOL_CONVERSION = YES;
230 | CLANG_WARN_CONSTANT_CONVERSION = YES;
231 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
232 | CLANG_WARN_EMPTY_BODY = YES;
233 | CLANG_WARN_ENUM_CONVERSION = YES;
234 | CLANG_WARN_INFINITE_RECURSION = YES;
235 | CLANG_WARN_INT_CONVERSION = YES;
236 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
237 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
238 | CLANG_WARN_UNREACHABLE_CODE = YES;
239 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
240 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
241 | COPY_PHASE_STRIP = NO;
242 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
243 | ENABLE_NS_ASSERTIONS = NO;
244 | ENABLE_STRICT_OBJC_MSGSEND = YES;
245 | GCC_C_LANGUAGE_STANDARD = gnu99;
246 | GCC_NO_COMMON_BLOCKS = YES;
247 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
248 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
249 | GCC_WARN_UNDECLARED_SELECTOR = YES;
250 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
251 | GCC_WARN_UNUSED_FUNCTION = YES;
252 | GCC_WARN_UNUSED_VARIABLE = YES;
253 | IPHONEOS_DEPLOYMENT_TARGET = 9.2;
254 | MTL_ENABLE_DEBUG_INFO = NO;
255 | SDKROOT = iphoneos;
256 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
257 | TARGETED_DEVICE_FAMILY = "1,2";
258 | VALIDATE_PRODUCT = YES;
259 | };
260 | name = Release;
261 | };
262 | BC00E6F71C7728130029C63E /* Debug */ = {
263 | isa = XCBuildConfiguration;
264 | buildSettings = {
265 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
266 | INFOPLIST_FILE = SwipeRightToPopController/Info.plist;
267 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
268 | PRODUCT_BUNDLE_IDENTIFIER = com.war.SwipeRightToPopController;
269 | PRODUCT_NAME = "$(TARGET_NAME)";
270 | SWIFT_VERSION = 3.0;
271 | };
272 | name = Debug;
273 | };
274 | BC00E6F81C7728130029C63E /* Release */ = {
275 | isa = XCBuildConfiguration;
276 | buildSettings = {
277 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
278 | INFOPLIST_FILE = SwipeRightToPopController/Info.plist;
279 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
280 | PRODUCT_BUNDLE_IDENTIFIER = com.war.SwipeRightToPopController;
281 | PRODUCT_NAME = "$(TARGET_NAME)";
282 | SWIFT_VERSION = 3.0;
283 | };
284 | name = Release;
285 | };
286 | /* End XCBuildConfiguration section */
287 |
288 | /* Begin XCConfigurationList section */
289 | BC00E6DF1C7728130029C63E /* Build configuration list for PBXProject "SwipeRightToPopController" */ = {
290 | isa = XCConfigurationList;
291 | buildConfigurations = (
292 | BC00E6F41C7728130029C63E /* Debug */,
293 | BC00E6F51C7728130029C63E /* Release */,
294 | );
295 | defaultConfigurationIsVisible = 0;
296 | defaultConfigurationName = Release;
297 | };
298 | BC00E6F61C7728130029C63E /* Build configuration list for PBXNativeTarget "SwipeRightToPopController" */ = {
299 | isa = XCConfigurationList;
300 | buildConfigurations = (
301 | BC00E6F71C7728130029C63E /* Debug */,
302 | BC00E6F81C7728130029C63E /* Release */,
303 | );
304 | defaultConfigurationIsVisible = 0;
305 | defaultConfigurationName = Release;
306 | };
307 | /* End XCConfigurationList section */
308 | };
309 | rootObject = BC00E6DC1C7728130029C63E /* Project object */;
310 | }
311 |
--------------------------------------------------------------------------------