├── DraggableDemo.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
├── .gitignore
├── Draggable
├── DraggableView.swift
├── DraggableProtocol.swift
├── DraggableCell.swift
├── Draggable+UIView.swift
└── Draggable+UIGestureRecognizer.swift
├── DraggableDemo
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── ViewController.swift
├── Info.plist
├── CollectionViewController.swift
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
└── AppDelegate.swift
├── DraggableDemoTests
├── Info.plist
└── DraggableTests.swift
├── DraggableDemoUITests
├── Info.plist
└── DraggableUITests.swift
└── readme.md
/DraggableDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | c OS X
2 | .DS_Store
3 |
4 | # Xcode
5 | build/
6 | *.pbxuser
7 | !default.pbxuser
8 | *.mode1v3
9 | !default.mode1v3
10 | *.mode2v3
11 | !default.mode2v3
12 | *.perspectivev3
13 | !default.perspectivev3
14 | xcuserdata
15 | *.xccheckout
16 | *.moved-aside
17 | DerivedData
18 | *.hmap
19 | *.ipa
20 | *.xcuserstate
21 |
22 | # Carthage
23 | Carthage/Build
24 |
--------------------------------------------------------------------------------
/Draggable/DraggableView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DraggableView.swift
3 | // DraggableTest
4 | //
5 | // Created by Bay Phillips on 9/27/15.
6 | // Copyright © 2015 Bay Phillips. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class DraggableView: UIView, Draggable
12 | {
13 | var initialLocation: CGPoint = CGPointZero
14 |
15 | override func didMoveToSuperview() {
16 | if self.superview != nil {
17 | self.registerDraggability()
18 | } else {
19 | self.removeDraggability()
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/Draggable/DraggableProtocol.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DraggableProtocol.swift
3 | // DraggableTest
4 | //
5 | // Created by Bay Phillips on 9/27/15.
6 | // Copyright © 2015 Bay Phillips. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | protocol Draggable: class {
12 | var view: UIView { get }
13 | var initialLocation: CGPoint { get set }
14 |
15 | func registerDraggability() -> Void
16 | func removeDraggability() -> Void
17 | func didPress(pressGesture: UILongPressGestureRecognizer) -> Void
18 | func didPan(panGesture: UIPanGestureRecognizer) -> Void
19 | }
--------------------------------------------------------------------------------
/Draggable/DraggableCell.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DraggableCell.swift
3 | // DraggableTest
4 | //
5 | // Created by Bay Phillips on 9/27/15.
6 | // Copyright © 2015 Bay Phillips. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class DraggableCell: UICollectionViewCell, Draggable {
12 |
13 | @IBOutlet weak var textLabel: UILabel!
14 |
15 | static let identifier: String = "draggablecell"
16 |
17 | var initialLocation: CGPoint = CGPointZero
18 |
19 | override func didMoveToSuperview() {
20 | if self.superview != nil {
21 | self.registerDraggability()
22 | } else {
23 | self.removeDraggability()
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/DraggableDemo/Assets.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 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/DraggableDemo/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // DraggableTest
4 | //
5 | // Created by Bay Phillips on 9/24/15.
6 | // Copyright © 2015 Bay Phillips. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | var redBox: DraggableView!
14 | override func viewDidLoad() {
15 | super.viewDidLoad()
16 | // Do any additional setup after loading the view, typically from a nib.
17 |
18 | redBox = DraggableView(frame: CGRectMake(150, 150, 250, 250))
19 | redBox.backgroundColor = UIColor.redColor()
20 | self.view.addSubview(redBox)
21 | }
22 |
23 | override func didReceiveMemoryWarning() {
24 | super.didReceiveMemoryWarning()
25 | // Dispose of any resources that can be recreated.
26 | }
27 | }
--------------------------------------------------------------------------------
/DraggableDemoTests/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 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/DraggableDemoUITests/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 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | #Draggable-Swift
2 |
3 | Utilizing Swift 2's protocol extensions, we're able to make any UIView backed class draggable easily by simply adding the `Draggable` protocol, implementing one property and enabling the gestures:
4 |
5 | ##Example
6 |
7 | class DraggableView: UIView, Draggable
8 | {
9 | var initialLocation: CGPoint = CGPointZero
10 |
11 | override func didMoveToSuperview() {
12 | if self.superview != nil {
13 | self.registerDraggability()
14 | } else {
15 | self.removeDraggability()
16 | }
17 | }
18 | }
19 |
20 | The demo also includes an example for `UICollectionViewCell`, but this can be applied pretty much anywhere else.
21 |
22 | ##Screenshots
23 | 
24 | 
--------------------------------------------------------------------------------
/DraggableDemoTests/DraggableTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DraggableTestTests.swift
3 | // DraggableTestTests
4 | //
5 | // Created by Bay Phillips on 9/24/15.
6 | // Copyright © 2015 Bay Phillips. All rights reserved.
7 | //
8 |
9 | import XCTest
10 | @testable import DraggableTest
11 |
12 | class DraggableTestTests: 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 | // Use XCTAssert and related functions to verify your tests produce the correct results.
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 |
--------------------------------------------------------------------------------
/DraggableDemo/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 |
40 |
41 |
--------------------------------------------------------------------------------
/DraggableDemoUITests/DraggableUITests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DraggableTestUITests.swift
3 | // DraggableTestUITests
4 | //
5 | // Created by Bay Phillips on 9/24/15.
6 | // Copyright © 2015 Bay Phillips. All rights reserved.
7 | //
8 |
9 | import XCTest
10 |
11 | class DraggableTestUITests: XCTestCase {
12 |
13 | override func setUp() {
14 | super.setUp()
15 |
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 |
18 | // In UI tests it is usually best to stop immediately when a failure occurs.
19 | continueAfterFailure = false
20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
21 | XCUIApplication().launch()
22 |
23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
24 | }
25 |
26 | override func tearDown() {
27 | // Put teardown code here. This method is called after the invocation of each test method in the class.
28 | super.tearDown()
29 | }
30 |
31 | func testExample() {
32 | // Use recording to get started writing UI tests.
33 | // Use XCTAssert and related functions to verify your tests produce the correct results.
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/DraggableDemo/CollectionViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // CollectionViewController.swift
3 | // DraggableTest
4 | //
5 | // Created by Bay Phillips on 9/26/15.
6 | // Copyright © 2015 Bay Phillips. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class CollectionViewController: UICollectionViewController {
12 |
13 | override func viewDidLoad() {
14 | super.viewDidLoad()
15 |
16 | let layout: UICollectionViewFlowLayout = UICollectionViewFlowLayout()
17 | layout.itemSize = CGSizeMake(self.view.bounds.size.width, 200)
18 |
19 | self.collectionView?.setCollectionViewLayout(layout, animated: false)
20 | }
21 |
22 | override func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
23 | return 10
24 | }
25 |
26 | override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
27 | let draggableCell: DraggableCell = collectionView.dequeueReusableCellWithReuseIdentifier(DraggableCell.identifier, forIndexPath: indexPath) as! DraggableCell
28 | draggableCell.textLabel.text = "Row \(indexPath.row)"
29 |
30 | switch indexPath.row % 3 {
31 | case 0:
32 | draggableCell.backgroundColor = UIColor.blueColor()
33 | break
34 | case 1:
35 | draggableCell.backgroundColor = UIColor.purpleColor()
36 | break
37 | case 2:
38 | draggableCell.backgroundColor = UIColor.yellowColor()
39 | break
40 | default:
41 | break
42 | }
43 | return draggableCell
44 | }
45 | }
--------------------------------------------------------------------------------
/DraggableDemo/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 |
--------------------------------------------------------------------------------
/DraggableDemo/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // DraggableTest
4 | //
5 | // Created by Bay Phillips on 9/24/15.
6 | // Copyright © 2015 Bay Phillips. 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 |
--------------------------------------------------------------------------------
/Draggable/Draggable+UIView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Draggable+UIView.swift
3 | // DraggableTest
4 | //
5 | // Created by Bay Phillips on 9/27/15.
6 | // Copyright © 2015 Bay Phillips. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | extension Draggable where Self: UIView {
12 | var view: UIView { get { return self } }
13 | var parentView: UIView? { get { return self.view.superview } }
14 |
15 | func registerDraggability() {
16 | let panGesture = UIPanGestureRecognizer()
17 | panGesture.handler = { gesture in
18 | self.didPan(gesture as! UIPanGestureRecognizer)
19 | }
20 |
21 | self.view.addGestureRecognizer(panGesture)
22 |
23 | let pressGesture = UILongPressGestureRecognizer()
24 | pressGesture.minimumPressDuration = 0.001
25 | pressGesture.handler = { gesture in
26 | self.didPress(gesture as! UILongPressGestureRecognizer)
27 | }
28 |
29 | self.view.addGestureRecognizer(pressGesture)
30 | }
31 |
32 | func removeDraggability() {
33 | guard self.gestureRecognizers != nil else {
34 | return
35 | }
36 |
37 | let _ = self.gestureRecognizers!
38 | .filter({ $0.delegate is UIGestureRecognizer.GestureDelegate })
39 | .map({ self.removeGestureRecognizer($0) })
40 | }
41 |
42 | func didPress(pressGesture: UILongPressGestureRecognizer) {
43 | switch pressGesture.state {
44 | case UIGestureRecognizerState.Began:
45 | self.initialLocation = self.view.center
46 | UIView.animateWithDuration(0.1, animations: { () -> Void in
47 | self.parentView?.bringSubviewToFront(self.view)
48 | self.view.transform = CGAffineTransformMakeScale(0.80, 0.80)
49 | })
50 | break
51 | case UIGestureRecognizerState.Cancelled, UIGestureRecognizerState.Ended, UIGestureRecognizerState.Failed:
52 | UIView.animateWithDuration(0.1, animations: { () -> Void in
53 | self.view.transform = CGAffineTransformMakeScale(1.0, 1.0)
54 | })
55 | break
56 | default:
57 | break
58 | }
59 | }
60 |
61 | func didPan(panGesture: UIPanGestureRecognizer) {
62 | let translation = panGesture.translationInView(self.parentView)
63 | self.view.center = CGPointMake(self.initialLocation.x + translation.x, self.initialLocation.y + translation.y)
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/Draggable/Draggable+UIGestureRecognizer.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Draggable+UIGestureRecognizer.swift
3 | // DraggableTest
4 | //
5 | // Created by Bay Phillips on 9/27/15.
6 | // Copyright © 2015 Bay Phillips. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | extension UIGestureRecognizer {
12 | private class ClosureWrapper: NSObject {
13 | let handler: (UIGestureRecognizer) -> Void
14 |
15 | init(handler: (UIGestureRecognizer) -> Void) {
16 | self.handler = handler
17 | }
18 | }
19 |
20 | class GestureDelegate: NSObject, UIGestureRecognizerDelegate {
21 | static var delegateKey: String = "delegateKey"
22 | @objc func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWithGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
23 | return gestureRecognizer.delegate is GestureDelegate && otherGestureRecognizer.delegate is GestureDelegate
24 | }
25 |
26 | @objc func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldReceiveTouch touch: UITouch) -> Bool {
27 | return true
28 | }
29 |
30 | @objc func gestureRecognizerShouldBegin(gestureRecognizer: UIGestureRecognizer) -> Bool {
31 | return true
32 | }
33 | }
34 |
35 | private var multiDelegate: GestureDelegate {
36 | get {
37 | return objc_getAssociatedObject(self, &GestureDelegate.delegateKey) as! GestureDelegate
38 | }
39 | set {
40 | objc_setAssociatedObject(self, &GestureDelegate.delegateKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
41 | }
42 | }
43 |
44 | private static var handlerKey: String = "handlerKey"
45 | var handler: (UIGestureRecognizer) -> Void {
46 | get {
47 | let closureWrapper: ClosureWrapper = objc_getAssociatedObject(self, &UIGestureRecognizer.handlerKey) as! ClosureWrapper
48 | return closureWrapper.handler
49 | }
50 | set {
51 | self.addTarget(self, action: Selector("handleAction"))
52 | self.multiDelegate = GestureDelegate()
53 | self.delegate = self.multiDelegate
54 | objc_setAssociatedObject(self, &UIGestureRecognizer.handlerKey, ClosureWrapper(handler: newValue), objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 | }
56 | }
57 |
58 | func handleAction() {
59 | self.handler(self)
60 | }
61 | }
--------------------------------------------------------------------------------
/DraggableDemo/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
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 |
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 |
97 |
--------------------------------------------------------------------------------
/DraggableDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 615E94D31BB840FB00983901 /* DraggableUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615E94D11BB840FB00983901 /* DraggableUITests.swift */; settings = {ASSET_TAGS = (); }; };
11 | 615E94D41BB840FB00983901 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 615E94D21BB840FB00983901 /* Info.plist */; settings = {ASSET_TAGS = (); }; };
12 | 615E94D81BB8410300983901 /* DraggableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615E94D61BB8410300983901 /* DraggableTests.swift */; settings = {ASSET_TAGS = (); }; };
13 | 615E94D91BB8410300983901 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 615E94D71BB8410300983901 /* Info.plist */; settings = {ASSET_TAGS = (); }; };
14 | 615E94E41BB8412000983901 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615E94DB1BB8412000983901 /* AppDelegate.swift */; settings = {ASSET_TAGS = (); }; };
15 | 615E94E51BB8412000983901 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 615E94DC1BB8412000983901 /* Assets.xcassets */; settings = {ASSET_TAGS = (); }; };
16 | 615E94E61BB8412000983901 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 615E94DD1BB8412000983901 /* LaunchScreen.storyboard */; settings = {ASSET_TAGS = (); }; };
17 | 615E94E71BB8412000983901 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 615E94DF1BB8412000983901 /* Main.storyboard */; settings = {ASSET_TAGS = (); }; };
18 | 615E94E81BB8412000983901 /* CollectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615E94E11BB8412000983901 /* CollectionViewController.swift */; settings = {ASSET_TAGS = (); }; };
19 | 615E94E91BB8412000983901 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 615E94E21BB8412000983901 /* Info.plist */; settings = {ASSET_TAGS = (); }; };
20 | 615E94EA1BB8412000983901 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615E94E31BB8412000983901 /* ViewController.swift */; settings = {ASSET_TAGS = (); }; };
21 | 615E94F11BB8412600983901 /* Draggable+UIGestureRecognizer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615E94EC1BB8412600983901 /* Draggable+UIGestureRecognizer.swift */; settings = {ASSET_TAGS = (); }; };
22 | 615E94F21BB8412600983901 /* Draggable+UIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615E94ED1BB8412600983901 /* Draggable+UIView.swift */; settings = {ASSET_TAGS = (); }; };
23 | 615E94F31BB8412600983901 /* DraggableCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615E94EE1BB8412600983901 /* DraggableCell.swift */; settings = {ASSET_TAGS = (); }; };
24 | 615E94F41BB8412600983901 /* DraggableProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615E94EF1BB8412600983901 /* DraggableProtocol.swift */; settings = {ASSET_TAGS = (); }; };
25 | 615E94F51BB8412600983901 /* DraggableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615E94F01BB8412600983901 /* DraggableView.swift */; settings = {ASSET_TAGS = (); }; };
26 | /* End PBXBuildFile section */
27 |
28 | /* Begin PBXContainerItemProxy section */
29 | 614577571BB4D6C500B0A8BA /* PBXContainerItemProxy */ = {
30 | isa = PBXContainerItemProxy;
31 | containerPortal = 6145773A1BB4D6C500B0A8BA /* Project object */;
32 | proxyType = 1;
33 | remoteGlobalIDString = 614577411BB4D6C500B0A8BA;
34 | remoteInfo = DraggableTest;
35 | };
36 | 614577621BB4D6C500B0A8BA /* PBXContainerItemProxy */ = {
37 | isa = PBXContainerItemProxy;
38 | containerPortal = 6145773A1BB4D6C500B0A8BA /* Project object */;
39 | proxyType = 1;
40 | remoteGlobalIDString = 614577411BB4D6C500B0A8BA;
41 | remoteInfo = DraggableTest;
42 | };
43 | /* End PBXContainerItemProxy section */
44 |
45 | /* Begin PBXFileReference section */
46 | 614577421BB4D6C500B0A8BA /* DraggableDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DraggableDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
47 | 614577561BB4D6C500B0A8BA /* DraggableDemo.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DraggableDemo.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
48 | 614577611BB4D6C500B0A8BA /* DraggableDemo.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DraggableDemo.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
49 | 615E94D11BB840FB00983901 /* DraggableUITests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DraggableUITests.swift; sourceTree = ""; };
50 | 615E94D21BB840FB00983901 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
51 | 615E94D61BB8410300983901 /* DraggableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DraggableTests.swift; sourceTree = ""; };
52 | 615E94D71BB8410300983901 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
53 | 615E94DB1BB8412000983901 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
54 | 615E94DC1BB8412000983901 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
55 | 615E94DE1BB8412000983901 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
56 | 615E94E01BB8412000983901 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
57 | 615E94E11BB8412000983901 /* CollectionViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionViewController.swift; sourceTree = ""; };
58 | 615E94E21BB8412000983901 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
59 | 615E94E31BB8412000983901 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
60 | 615E94EC1BB8412600983901 /* Draggable+UIGestureRecognizer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Draggable+UIGestureRecognizer.swift"; sourceTree = ""; };
61 | 615E94ED1BB8412600983901 /* Draggable+UIView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Draggable+UIView.swift"; sourceTree = ""; };
62 | 615E94EE1BB8412600983901 /* DraggableCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DraggableCell.swift; sourceTree = ""; };
63 | 615E94EF1BB8412600983901 /* DraggableProtocol.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DraggableProtocol.swift; sourceTree = ""; };
64 | 615E94F01BB8412600983901 /* DraggableView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DraggableView.swift; sourceTree = ""; };
65 | /* End PBXFileReference section */
66 |
67 | /* Begin PBXFrameworksBuildPhase section */
68 | 6145773F1BB4D6C500B0A8BA /* Frameworks */ = {
69 | isa = PBXFrameworksBuildPhase;
70 | buildActionMask = 2147483647;
71 | files = (
72 | );
73 | runOnlyForDeploymentPostprocessing = 0;
74 | };
75 | 614577531BB4D6C500B0A8BA /* Frameworks */ = {
76 | isa = PBXFrameworksBuildPhase;
77 | buildActionMask = 2147483647;
78 | files = (
79 | );
80 | runOnlyForDeploymentPostprocessing = 0;
81 | };
82 | 6145775E1BB4D6C500B0A8BA /* Frameworks */ = {
83 | isa = PBXFrameworksBuildPhase;
84 | buildActionMask = 2147483647;
85 | files = (
86 | );
87 | runOnlyForDeploymentPostprocessing = 0;
88 | };
89 | /* End PBXFrameworksBuildPhase section */
90 |
91 | /* Begin PBXGroup section */
92 | 614577391BB4D6C500B0A8BA = {
93 | isa = PBXGroup;
94 | children = (
95 | 615E94EB1BB8412600983901 /* Draggable */,
96 | 615E94DA1BB8412000983901 /* DraggableDemo */,
97 | 615E94D51BB8410300983901 /* DraggableDemoTests */,
98 | 615E94D01BB840FB00983901 /* DraggableDemoUITests */,
99 | 614577431BB4D6C500B0A8BA /* Products */,
100 | );
101 | sourceTree = "";
102 | };
103 | 614577431BB4D6C500B0A8BA /* Products */ = {
104 | isa = PBXGroup;
105 | children = (
106 | 614577421BB4D6C500B0A8BA /* DraggableDemo.app */,
107 | 614577561BB4D6C500B0A8BA /* DraggableDemo.xctest */,
108 | 614577611BB4D6C500B0A8BA /* DraggableDemo.xctest */,
109 | );
110 | name = Products;
111 | sourceTree = "";
112 | };
113 | 615E94D01BB840FB00983901 /* DraggableDemoUITests */ = {
114 | isa = PBXGroup;
115 | children = (
116 | 615E94D11BB840FB00983901 /* DraggableUITests.swift */,
117 | 615E94D21BB840FB00983901 /* Info.plist */,
118 | );
119 | path = DraggableDemoUITests;
120 | sourceTree = "";
121 | };
122 | 615E94D51BB8410300983901 /* DraggableDemoTests */ = {
123 | isa = PBXGroup;
124 | children = (
125 | 615E94D61BB8410300983901 /* DraggableTests.swift */,
126 | 615E94D71BB8410300983901 /* Info.plist */,
127 | );
128 | path = DraggableDemoTests;
129 | sourceTree = "";
130 | };
131 | 615E94DA1BB8412000983901 /* DraggableDemo */ = {
132 | isa = PBXGroup;
133 | children = (
134 | 615E94DB1BB8412000983901 /* AppDelegate.swift */,
135 | 615E94DC1BB8412000983901 /* Assets.xcassets */,
136 | 615E94DD1BB8412000983901 /* LaunchScreen.storyboard */,
137 | 615E94DF1BB8412000983901 /* Main.storyboard */,
138 | 615E94E11BB8412000983901 /* CollectionViewController.swift */,
139 | 615E94E21BB8412000983901 /* Info.plist */,
140 | 615E94E31BB8412000983901 /* ViewController.swift */,
141 | );
142 | path = DraggableDemo;
143 | sourceTree = "";
144 | };
145 | 615E94EB1BB8412600983901 /* Draggable */ = {
146 | isa = PBXGroup;
147 | children = (
148 | 615E94EC1BB8412600983901 /* Draggable+UIGestureRecognizer.swift */,
149 | 615E94ED1BB8412600983901 /* Draggable+UIView.swift */,
150 | 615E94EE1BB8412600983901 /* DraggableCell.swift */,
151 | 615E94EF1BB8412600983901 /* DraggableProtocol.swift */,
152 | 615E94F01BB8412600983901 /* DraggableView.swift */,
153 | );
154 | path = Draggable;
155 | sourceTree = "";
156 | };
157 | /* End PBXGroup section */
158 |
159 | /* Begin PBXNativeTarget section */
160 | 614577411BB4D6C500B0A8BA /* DraggableDemo */ = {
161 | isa = PBXNativeTarget;
162 | buildConfigurationList = 6145776A1BB4D6C500B0A8BA /* Build configuration list for PBXNativeTarget "DraggableDemo" */;
163 | buildPhases = (
164 | 6145773E1BB4D6C500B0A8BA /* Sources */,
165 | 6145773F1BB4D6C500B0A8BA /* Frameworks */,
166 | 614577401BB4D6C500B0A8BA /* Resources */,
167 | );
168 | buildRules = (
169 | );
170 | dependencies = (
171 | );
172 | name = DraggableDemo;
173 | productName = DraggableTest;
174 | productReference = 614577421BB4D6C500B0A8BA /* DraggableDemo.app */;
175 | productType = "com.apple.product-type.application";
176 | };
177 | 614577551BB4D6C500B0A8BA /* DraggableDemoTests */ = {
178 | isa = PBXNativeTarget;
179 | buildConfigurationList = 6145776D1BB4D6C500B0A8BA /* Build configuration list for PBXNativeTarget "DraggableDemoTests" */;
180 | buildPhases = (
181 | 614577521BB4D6C500B0A8BA /* Sources */,
182 | 614577531BB4D6C500B0A8BA /* Frameworks */,
183 | 614577541BB4D6C500B0A8BA /* Resources */,
184 | );
185 | buildRules = (
186 | );
187 | dependencies = (
188 | 614577581BB4D6C500B0A8BA /* PBXTargetDependency */,
189 | );
190 | name = DraggableDemoTests;
191 | productName = DraggableTestTests;
192 | productReference = 614577561BB4D6C500B0A8BA /* DraggableDemo.xctest */;
193 | productType = "com.apple.product-type.bundle.unit-test";
194 | };
195 | 614577601BB4D6C500B0A8BA /* DraggableDemoUITests */ = {
196 | isa = PBXNativeTarget;
197 | buildConfigurationList = 614577701BB4D6C500B0A8BA /* Build configuration list for PBXNativeTarget "DraggableDemoUITests" */;
198 | buildPhases = (
199 | 6145775D1BB4D6C500B0A8BA /* Sources */,
200 | 6145775E1BB4D6C500B0A8BA /* Frameworks */,
201 | 6145775F1BB4D6C500B0A8BA /* Resources */,
202 | );
203 | buildRules = (
204 | );
205 | dependencies = (
206 | 614577631BB4D6C500B0A8BA /* PBXTargetDependency */,
207 | );
208 | name = DraggableDemoUITests;
209 | productName = DraggableTestUITests;
210 | productReference = 614577611BB4D6C500B0A8BA /* DraggableDemo.xctest */;
211 | productType = "com.apple.product-type.bundle.ui-testing";
212 | };
213 | /* End PBXNativeTarget section */
214 |
215 | /* Begin PBXProject section */
216 | 6145773A1BB4D6C500B0A8BA /* Project object */ = {
217 | isa = PBXProject;
218 | attributes = {
219 | LastUpgradeCheck = 0700;
220 | ORGANIZATIONNAME = "Bay Phillips";
221 | TargetAttributes = {
222 | 614577411BB4D6C500B0A8BA = {
223 | CreatedOnToolsVersion = 7.0;
224 | };
225 | 614577551BB4D6C500B0A8BA = {
226 | CreatedOnToolsVersion = 7.0;
227 | TestTargetID = 614577411BB4D6C500B0A8BA;
228 | };
229 | 614577601BB4D6C500B0A8BA = {
230 | CreatedOnToolsVersion = 7.0;
231 | TestTargetID = 614577411BB4D6C500B0A8BA;
232 | };
233 | };
234 | };
235 | buildConfigurationList = 6145773D1BB4D6C500B0A8BA /* Build configuration list for PBXProject "DraggableDemo" */;
236 | compatibilityVersion = "Xcode 3.2";
237 | developmentRegion = English;
238 | hasScannedForEncodings = 0;
239 | knownRegions = (
240 | en,
241 | Base,
242 | );
243 | mainGroup = 614577391BB4D6C500B0A8BA;
244 | productRefGroup = 614577431BB4D6C500B0A8BA /* Products */;
245 | projectDirPath = "";
246 | projectRoot = "";
247 | targets = (
248 | 614577411BB4D6C500B0A8BA /* DraggableDemo */,
249 | 614577551BB4D6C500B0A8BA /* DraggableDemoTests */,
250 | 614577601BB4D6C500B0A8BA /* DraggableDemoUITests */,
251 | );
252 | };
253 | /* End PBXProject section */
254 |
255 | /* Begin PBXResourcesBuildPhase section */
256 | 614577401BB4D6C500B0A8BA /* Resources */ = {
257 | isa = PBXResourcesBuildPhase;
258 | buildActionMask = 2147483647;
259 | files = (
260 | 615E94E91BB8412000983901 /* Info.plist in Resources */,
261 | 615E94E71BB8412000983901 /* Main.storyboard in Resources */,
262 | 615E94E51BB8412000983901 /* Assets.xcassets in Resources */,
263 | 615E94E61BB8412000983901 /* LaunchScreen.storyboard in Resources */,
264 | );
265 | runOnlyForDeploymentPostprocessing = 0;
266 | };
267 | 614577541BB4D6C500B0A8BA /* Resources */ = {
268 | isa = PBXResourcesBuildPhase;
269 | buildActionMask = 2147483647;
270 | files = (
271 | 615E94D91BB8410300983901 /* Info.plist in Resources */,
272 | );
273 | runOnlyForDeploymentPostprocessing = 0;
274 | };
275 | 6145775F1BB4D6C500B0A8BA /* Resources */ = {
276 | isa = PBXResourcesBuildPhase;
277 | buildActionMask = 2147483647;
278 | files = (
279 | 615E94D41BB840FB00983901 /* Info.plist in Resources */,
280 | );
281 | runOnlyForDeploymentPostprocessing = 0;
282 | };
283 | /* End PBXResourcesBuildPhase section */
284 |
285 | /* Begin PBXSourcesBuildPhase section */
286 | 6145773E1BB4D6C500B0A8BA /* Sources */ = {
287 | isa = PBXSourcesBuildPhase;
288 | buildActionMask = 2147483647;
289 | files = (
290 | 615E94EA1BB8412000983901 /* ViewController.swift in Sources */,
291 | 615E94E81BB8412000983901 /* CollectionViewController.swift in Sources */,
292 | 615E94F51BB8412600983901 /* DraggableView.swift in Sources */,
293 | 615E94F21BB8412600983901 /* Draggable+UIView.swift in Sources */,
294 | 615E94F31BB8412600983901 /* DraggableCell.swift in Sources */,
295 | 615E94E41BB8412000983901 /* AppDelegate.swift in Sources */,
296 | 615E94F41BB8412600983901 /* DraggableProtocol.swift in Sources */,
297 | 615E94F11BB8412600983901 /* Draggable+UIGestureRecognizer.swift in Sources */,
298 | );
299 | runOnlyForDeploymentPostprocessing = 0;
300 | };
301 | 614577521BB4D6C500B0A8BA /* Sources */ = {
302 | isa = PBXSourcesBuildPhase;
303 | buildActionMask = 2147483647;
304 | files = (
305 | 615E94D81BB8410300983901 /* DraggableTests.swift in Sources */,
306 | );
307 | runOnlyForDeploymentPostprocessing = 0;
308 | };
309 | 6145775D1BB4D6C500B0A8BA /* Sources */ = {
310 | isa = PBXSourcesBuildPhase;
311 | buildActionMask = 2147483647;
312 | files = (
313 | 615E94D31BB840FB00983901 /* DraggableUITests.swift in Sources */,
314 | );
315 | runOnlyForDeploymentPostprocessing = 0;
316 | };
317 | /* End PBXSourcesBuildPhase section */
318 |
319 | /* Begin PBXTargetDependency section */
320 | 614577581BB4D6C500B0A8BA /* PBXTargetDependency */ = {
321 | isa = PBXTargetDependency;
322 | target = 614577411BB4D6C500B0A8BA /* DraggableDemo */;
323 | targetProxy = 614577571BB4D6C500B0A8BA /* PBXContainerItemProxy */;
324 | };
325 | 614577631BB4D6C500B0A8BA /* PBXTargetDependency */ = {
326 | isa = PBXTargetDependency;
327 | target = 614577411BB4D6C500B0A8BA /* DraggableDemo */;
328 | targetProxy = 614577621BB4D6C500B0A8BA /* PBXContainerItemProxy */;
329 | };
330 | /* End PBXTargetDependency section */
331 |
332 | /* Begin PBXVariantGroup section */
333 | 615E94DD1BB8412000983901 /* LaunchScreen.storyboard */ = {
334 | isa = PBXVariantGroup;
335 | children = (
336 | 615E94DE1BB8412000983901 /* Base */,
337 | );
338 | name = LaunchScreen.storyboard;
339 | sourceTree = "";
340 | };
341 | 615E94DF1BB8412000983901 /* Main.storyboard */ = {
342 | isa = PBXVariantGroup;
343 | children = (
344 | 615E94E01BB8412000983901 /* Base */,
345 | );
346 | name = Main.storyboard;
347 | sourceTree = "";
348 | };
349 | /* End PBXVariantGroup section */
350 |
351 | /* Begin XCBuildConfiguration section */
352 | 614577681BB4D6C500B0A8BA /* Debug */ = {
353 | isa = XCBuildConfiguration;
354 | buildSettings = {
355 | ALWAYS_SEARCH_USER_PATHS = NO;
356 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
357 | CLANG_CXX_LIBRARY = "libc++";
358 | CLANG_ENABLE_MODULES = YES;
359 | CLANG_ENABLE_OBJC_ARC = YES;
360 | CLANG_WARN_BOOL_CONVERSION = YES;
361 | CLANG_WARN_CONSTANT_CONVERSION = YES;
362 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
363 | CLANG_WARN_EMPTY_BODY = YES;
364 | CLANG_WARN_ENUM_CONVERSION = YES;
365 | CLANG_WARN_INT_CONVERSION = YES;
366 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
367 | CLANG_WARN_UNREACHABLE_CODE = YES;
368 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
369 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
370 | COPY_PHASE_STRIP = NO;
371 | DEBUG_INFORMATION_FORMAT = dwarf;
372 | ENABLE_STRICT_OBJC_MSGSEND = YES;
373 | ENABLE_TESTABILITY = YES;
374 | GCC_C_LANGUAGE_STANDARD = gnu99;
375 | GCC_DYNAMIC_NO_PIC = NO;
376 | GCC_NO_COMMON_BLOCKS = YES;
377 | GCC_OPTIMIZATION_LEVEL = 0;
378 | GCC_PREPROCESSOR_DEFINITIONS = (
379 | "DEBUG=1",
380 | "$(inherited)",
381 | );
382 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
383 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
384 | GCC_WARN_UNDECLARED_SELECTOR = YES;
385 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
386 | GCC_WARN_UNUSED_FUNCTION = YES;
387 | GCC_WARN_UNUSED_VARIABLE = YES;
388 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
389 | MTL_ENABLE_DEBUG_INFO = YES;
390 | ONLY_ACTIVE_ARCH = YES;
391 | SDKROOT = iphoneos;
392 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
393 | };
394 | name = Debug;
395 | };
396 | 614577691BB4D6C500B0A8BA /* Release */ = {
397 | isa = XCBuildConfiguration;
398 | buildSettings = {
399 | ALWAYS_SEARCH_USER_PATHS = NO;
400 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
401 | CLANG_CXX_LIBRARY = "libc++";
402 | CLANG_ENABLE_MODULES = YES;
403 | CLANG_ENABLE_OBJC_ARC = YES;
404 | CLANG_WARN_BOOL_CONVERSION = YES;
405 | CLANG_WARN_CONSTANT_CONVERSION = YES;
406 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
407 | CLANG_WARN_EMPTY_BODY = YES;
408 | CLANG_WARN_ENUM_CONVERSION = YES;
409 | CLANG_WARN_INT_CONVERSION = YES;
410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
411 | CLANG_WARN_UNREACHABLE_CODE = YES;
412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
414 | COPY_PHASE_STRIP = NO;
415 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
416 | ENABLE_NS_ASSERTIONS = NO;
417 | ENABLE_STRICT_OBJC_MSGSEND = YES;
418 | GCC_C_LANGUAGE_STANDARD = gnu99;
419 | GCC_NO_COMMON_BLOCKS = YES;
420 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
421 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
422 | GCC_WARN_UNDECLARED_SELECTOR = YES;
423 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
424 | GCC_WARN_UNUSED_FUNCTION = YES;
425 | GCC_WARN_UNUSED_VARIABLE = YES;
426 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
427 | MTL_ENABLE_DEBUG_INFO = NO;
428 | SDKROOT = iphoneos;
429 | VALIDATE_PRODUCT = YES;
430 | };
431 | name = Release;
432 | };
433 | 6145776B1BB4D6C500B0A8BA /* Debug */ = {
434 | isa = XCBuildConfiguration;
435 | buildSettings = {
436 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
437 | INFOPLIST_FILE = "$(SRCROOT)/DraggableDemo/Info.plist";
438 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
439 | PRODUCT_BUNDLE_IDENTIFIER = com.BayPhillips.Draggable;
440 | PRODUCT_NAME = DraggableDemo;
441 | };
442 | name = Debug;
443 | };
444 | 6145776C1BB4D6C500B0A8BA /* Release */ = {
445 | isa = XCBuildConfiguration;
446 | buildSettings = {
447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
448 | INFOPLIST_FILE = "$(SRCROOT)/DraggableDemo/Info.plist";
449 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
450 | PRODUCT_BUNDLE_IDENTIFIER = com.BayPhillips.Draggable;
451 | PRODUCT_NAME = DraggableDemo;
452 | };
453 | name = Release;
454 | };
455 | 6145776E1BB4D6C500B0A8BA /* Debug */ = {
456 | isa = XCBuildConfiguration;
457 | buildSettings = {
458 | BUNDLE_LOADER = "$(TEST_HOST)";
459 | INFOPLIST_FILE = DraggableDemoTests/Info.plist;
460 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
461 | PRODUCT_BUNDLE_IDENTIFIER = com.BayPhillips.DraggableTestTests;
462 | PRODUCT_NAME = DraggableDemo;
463 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DraggableDemo.app/DraggableDemo";
464 | };
465 | name = Debug;
466 | };
467 | 6145776F1BB4D6C500B0A8BA /* Release */ = {
468 | isa = XCBuildConfiguration;
469 | buildSettings = {
470 | BUNDLE_LOADER = "$(TEST_HOST)";
471 | INFOPLIST_FILE = DraggableDemoTests/Info.plist;
472 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
473 | PRODUCT_BUNDLE_IDENTIFIER = com.BayPhillips.DraggableTestTests;
474 | PRODUCT_NAME = DraggableDemo;
475 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DraggableDemo.app/DraggableDemo";
476 | };
477 | name = Release;
478 | };
479 | 614577711BB4D6C500B0A8BA /* Debug */ = {
480 | isa = XCBuildConfiguration;
481 | buildSettings = {
482 | INFOPLIST_FILE = DraggableDemoUITests/Info.plist;
483 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
484 | PRODUCT_BUNDLE_IDENTIFIER = com.BayPhillips.DraggableDemoUITests;
485 | PRODUCT_NAME = DraggableDemo;
486 | TEST_TARGET_NAME = DraggableDemo;
487 | USES_XCTRUNNER = YES;
488 | };
489 | name = Debug;
490 | };
491 | 614577721BB4D6C500B0A8BA /* Release */ = {
492 | isa = XCBuildConfiguration;
493 | buildSettings = {
494 | INFOPLIST_FILE = DraggableDemoUITests/Info.plist;
495 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
496 | PRODUCT_BUNDLE_IDENTIFIER = com.BayPhillips.DraggableDemoUITests;
497 | PRODUCT_NAME = DraggableDemo;
498 | TEST_TARGET_NAME = DraggableDemo;
499 | USES_XCTRUNNER = YES;
500 | };
501 | name = Release;
502 | };
503 | /* End XCBuildConfiguration section */
504 |
505 | /* Begin XCConfigurationList section */
506 | 6145773D1BB4D6C500B0A8BA /* Build configuration list for PBXProject "DraggableDemo" */ = {
507 | isa = XCConfigurationList;
508 | buildConfigurations = (
509 | 614577681BB4D6C500B0A8BA /* Debug */,
510 | 614577691BB4D6C500B0A8BA /* Release */,
511 | );
512 | defaultConfigurationIsVisible = 0;
513 | defaultConfigurationName = Release;
514 | };
515 | 6145776A1BB4D6C500B0A8BA /* Build configuration list for PBXNativeTarget "DraggableDemo" */ = {
516 | isa = XCConfigurationList;
517 | buildConfigurations = (
518 | 6145776B1BB4D6C500B0A8BA /* Debug */,
519 | 6145776C1BB4D6C500B0A8BA /* Release */,
520 | );
521 | defaultConfigurationIsVisible = 0;
522 | defaultConfigurationName = Release;
523 | };
524 | 6145776D1BB4D6C500B0A8BA /* Build configuration list for PBXNativeTarget "DraggableDemoTests" */ = {
525 | isa = XCConfigurationList;
526 | buildConfigurations = (
527 | 6145776E1BB4D6C500B0A8BA /* Debug */,
528 | 6145776F1BB4D6C500B0A8BA /* Release */,
529 | );
530 | defaultConfigurationIsVisible = 0;
531 | defaultConfigurationName = Release;
532 | };
533 | 614577701BB4D6C500B0A8BA /* Build configuration list for PBXNativeTarget "DraggableDemoUITests" */ = {
534 | isa = XCConfigurationList;
535 | buildConfigurations = (
536 | 614577711BB4D6C500B0A8BA /* Debug */,
537 | 614577721BB4D6C500B0A8BA /* Release */,
538 | );
539 | defaultConfigurationIsVisible = 0;
540 | defaultConfigurationName = Release;
541 | };
542 | /* End XCConfigurationList section */
543 | };
544 | rootObject = 6145773A1BB4D6C500B0A8BA /* Project object */;
545 | }
546 |
--------------------------------------------------------------------------------