├── VineLine ├── VineLine │ ├── Assets.xcassets │ │ ├── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── ViewController.swift │ ├── UIColor+random.swift │ ├── Vine.swift │ ├── Branch.swift │ ├── Info.plist │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── AppDelegate.swift │ └── VineLineDrawingView.swift └── VineLine.xcodeproj │ ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── project.pbxproj ├── .gitignore ├── README.md └── LICENSE /VineLine/VineLine/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /VineLine/VineLine.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | */build/* 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | profile 14 | *.moved-aside 15 | DerivedData 16 | .idea/ 17 | *.hmap 18 | *.xccheckout 19 | 20 | #CocoaPods 21 | Pods 22 | -------------------------------------------------------------------------------- /VineLine/VineLine.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /VineLine/VineLine/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // VineLine 4 | // 5 | // Created by Michael Behan on 17/03/2019. 6 | // Copyright © 2019 Michael Behan. 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 | 19 | -------------------------------------------------------------------------------- /VineLine/VineLine/UIColor+random.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+random.swift 3 | // VineLine 4 | // 5 | // Created by Michael Behan on 17/04/2019. 6 | // Copyright © 2019 Michael Behan. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UIColor { 12 | static var random: UIColor { 13 | return UIColor( 14 | red: CGFloat.random(in: 0...1), 15 | green: CGFloat.random(in: 0...1), 16 | blue: CGFloat.random(in: 0...1), 17 | alpha: 1.0) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | VineLine 2 | ========= 3 | 4 | This is a prototype for a fun drawing tool - as you drag your finger across the canvas the line grows branches which sprout leaves. The branches are randomly generated within certain parameters and animate on while you draw the main line. 5 | 6 | ![A line is drawn, with branches automatically being added along its path](https://iosappdev.micro.blog/uploads/2021/98264ce1f9.jpg) 7 | 8 | Yes, the leaves are very realistic looking, thank you. 9 | 10 | You can read more about how it works in [the blog post](https://iosapp.dev/2014/01/30/fun-with-uibezierpath.html), note that the main branch contains a Swift translation of the code discussed in that blog post, you can see the original version on the [objective-c branch](https://github.com/mbehan/vine-line/tree/objective-c). 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Michael Behan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | 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, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /VineLine/VineLine/Vine.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Vine.swift 3 | // VineLine 4 | // 5 | // Created by Michael Behan on 26/11/2019. 6 | // Copyright © 2019 Michael Behan. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class Vine: UIBezierPath { 12 | 13 | var leafSize: Double = 10.0 14 | var maxBranchLength: Double = 100.0 15 | var minBranchSeperation = 50.0 16 | var color = UIColor.green 17 | 18 | weak var delegate: BranchingDelegate? 19 | 20 | private var hasNoBranches = true 21 | private var firstPoint: CGPoint! 22 | private var lastBranchPosition: CGPoint! 23 | 24 | override func move(to point: CGPoint) { 25 | super.move(to: point) 26 | 27 | firstPoint = point 28 | } 29 | 30 | override func addLine(to point: CGPoint) { 31 | super.addLine(to: point) 32 | 33 | var distanceFromPrevious = 0.0 34 | 35 | if(hasNoBranches) { 36 | distanceFromPrevious = hypot(Double(point.x - firstPoint.x), Double(point.y - firstPoint.y)); 37 | } else { 38 | distanceFromPrevious = hypot(Double(point.x - lastBranchPosition.x), Double(point.y - lastBranchPosition.y)) 39 | } 40 | 41 | if(distanceFromPrevious > minBranchSeperation) { 42 | let newBranch = Branch(start: point, maxLength: CGFloat(maxBranchLength), leafSize: CGFloat(leafSize), color: color) 43 | newBranch.lineWidth = self.lineWidth / 2.0 44 | 45 | hasNoBranches = false 46 | delegate?.vineDidCreate(branch: newBranch) 47 | lastBranchPosition = point; 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /VineLine/VineLine/Branch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Branch.swift 3 | // VineLine 4 | // 5 | // Created by Michael Behan on 26/03/2019. 6 | // Copyright © 2019 Michael Behan. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | protocol BranchingDelegate: class { 12 | func vineDidCreate(branch: Branch) 13 | } 14 | 15 | class Branch: UIBezierPath { 16 | 17 | private(set) var color: UIColor 18 | 19 | init(start: CGPoint, maxLength: CGFloat, leafSize: CGFloat, color: UIColor) { 20 | 21 | self.color = color 22 | 23 | super.init() 24 | 25 | move(to: start) 26 | 27 | let end = CGPoint.randomPoint(between: start, and: CGPoint(x: start.x + maxLength, y: start.y + maxLength)) 28 | let control1 = CGPoint.randomPoint(between: start, and: end) 29 | let control2 = CGPoint.randomPoint(between: start, and: end) 30 | 31 | addCurve(to: end, controlPoint1: control1, controlPoint2: control2) 32 | 33 | let leaf = UIBezierPath(ovalIn: CGRect(x: end.x - leafSize / 2.0, y: end.y - leafSize / 2.0, width: leafSize, height: leafSize)) 34 | 35 | append(leaf) 36 | } 37 | 38 | required init?(coder aDecoder: NSCoder) { 39 | fatalError("init(coder:) has not been implemented") 40 | } 41 | } 42 | 43 | extension CGPoint { 44 | static func randomPoint(between point1: CGPoint, and point2: CGPoint) -> CGPoint { 45 | return CGPoint(x: Double.random(in: Double(point1.x) ... Double(point2.x)), 46 | y: Double.random(in: Double(point1.y) ... Double(point2.y))) 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /VineLine/VineLine/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /VineLine/VineLine/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 | -------------------------------------------------------------------------------- /VineLine/VineLine/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 | -------------------------------------------------------------------------------- /VineLine/VineLine/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 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /VineLine/VineLine/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // VineLine 4 | // 5 | // Created by Michael Behan on 17/03/2019. 6 | // Copyright © 2019 Michael Behan. 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: [UIApplication.LaunchOptionsKey: 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 invalidate graphics rendering callbacks. 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 active 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 | -------------------------------------------------------------------------------- /VineLine/VineLine/VineLineDrawingView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DrawingView.swift 3 | // VineLine 4 | // 5 | // Created by Michael Behan on 17/03/2019. 6 | // Copyright © 2019 Michael Behan. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class VineLineDrawingView: UIView { 12 | 13 | private let lineWidth = CGFloat(5.0) 14 | private var activeStrokes = [UITouch: Vine]() 15 | private var strokes = [Vine]() 16 | 17 | var leafSize = 10.0 18 | var branchSeperation = 100.0 19 | var vineWidth = 5.0 20 | var branchLength = 50.0 21 | 22 | // MARK:- Init 23 | 24 | override init(frame: CGRect) { 25 | super.init(frame: frame) 26 | setup() 27 | } 28 | 29 | required init?(coder aDecoder: NSCoder) { 30 | super.init(coder: aDecoder) 31 | setup() 32 | } 33 | 34 | func setup(){ 35 | isMultipleTouchEnabled = true 36 | } 37 | 38 | // MARK:- Touch handling 39 | 40 | override func touchesBegan(_ touches: Set, with event: UIEvent?) { 41 | self.isMultipleTouchEnabled = true 42 | for touch in touches { 43 | let location = touch.location(in: self) 44 | let newVine = createVine(at: location) 45 | newVine.delegate = self 46 | activeStrokes[touch] = newVine 47 | } 48 | } 49 | 50 | private func createVine(at location: CGPoint)->Vine { 51 | 52 | let vine = Vine() 53 | vine.lineCapStyle = .round 54 | vine.lineWidth = lineWidth 55 | vine.move(to: location) 56 | vine.addLine(to: location) 57 | vine.lineWidth = CGFloat(vineWidth) 58 | vine.minBranchSeperation = branchSeperation 59 | vine.maxBranchLength = branchLength 60 | vine.leafSize = leafSize 61 | vine.color = UIColor.random 62 | 63 | return vine 64 | } 65 | 66 | override func touchesMoved(_ touches: Set, with event: UIEvent?) { 67 | for touch in touches { 68 | activeStrokes[touch]!.addLine(to: touch.location(in: self)) 69 | } 70 | self.setNeedsDisplay() 71 | } 72 | 73 | override func touchesEnded(_ touches: Set, with event: UIEvent?) { 74 | for touch in touches { 75 | let line = activeStrokes.removeValue(forKey: touch)! 76 | line.move(to: touch.location(in: self)) 77 | strokes.append(line) 78 | } 79 | self.setNeedsDisplay() 80 | } 81 | 82 | // MARK:- Drawing 83 | 84 | override func draw(_ rect: CGRect) { 85 | for line in strokes { 86 | line.color.setStroke() 87 | line.stroke() 88 | } 89 | 90 | for line in activeStrokes.values { 91 | line.color.setStroke() 92 | line.stroke() 93 | } 94 | } 95 | } 96 | 97 | extension VineLineDrawingView: BranchingDelegate { 98 | 99 | func vineDidCreate(branch: Branch) { 100 | 101 | let branchShape = CAShapeLayer() 102 | branchShape.path = branch.cgPath 103 | branchShape.fillColor = UIColor.clear.cgColor 104 | branchShape.strokeColor = branch.color.cgColor 105 | branchShape.lineWidth = branch.lineWidth 106 | 107 | layer.addSublayer(branchShape) 108 | 109 | let branchGrowAnimation = CABasicAnimation(keyPath: "strokeEnd") 110 | branchGrowAnimation.duration = 1.0 111 | branchGrowAnimation.fromValue = 0.0 112 | branchGrowAnimation.toValue = 1.0 113 | branchShape.add(branchGrowAnimation, forKey: "strokeEnd") 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /VineLine/VineLine.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | A5221EA7238D469E00DE27F5 /* Vine.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5221EA6238D469E00DE27F5 /* Vine.swift */; }; 11 | A5221EA9238D495700DE27F5 /* VineLineDrawingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5221EA8238D495700DE27F5 /* VineLineDrawingView.swift */; }; 12 | A53C000222675AF10017B23D /* UIColor+random.swift in Sources */ = {isa = PBXBuildFile; fileRef = A53C000122675AF10017B23D /* UIColor+random.swift */; }; 13 | A5A8818E223E2A1D0042303D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5A8818D223E2A1D0042303D /* AppDelegate.swift */; }; 14 | A5A88190223E2A1D0042303D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5A8818F223E2A1D0042303D /* ViewController.swift */; }; 15 | A5A88193223E2A1D0042303D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A5A88191223E2A1D0042303D /* Main.storyboard */; }; 16 | A5A88195223E2A1E0042303D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A5A88194223E2A1E0042303D /* Assets.xcassets */; }; 17 | A5A88198223E2A1E0042303D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A5A88196223E2A1E0042303D /* LaunchScreen.storyboard */; }; 18 | A5EA4E03224A680C00E7B462 /* Branch.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5EA4E02224A680C00E7B462 /* Branch.swift */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | A5221EA6238D469E00DE27F5 /* Vine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Vine.swift; sourceTree = ""; }; 23 | A5221EA8238D495700DE27F5 /* VineLineDrawingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VineLineDrawingView.swift; sourceTree = ""; }; 24 | A53C000122675AF10017B23D /* UIColor+random.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIColor+random.swift"; sourceTree = ""; }; 25 | A5A8818A223E2A1D0042303D /* VineLine.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = VineLine.app; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | A5A8818D223E2A1D0042303D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 27 | A5A8818F223E2A1D0042303D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 28 | A5A88192223E2A1D0042303D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 29 | A5A88194223E2A1E0042303D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 30 | A5A88197223E2A1E0042303D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 31 | A5A88199223E2A1E0042303D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | A5EA4E02224A680C00E7B462 /* Branch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Branch.swift; sourceTree = ""; }; 33 | /* End PBXFileReference section */ 34 | 35 | /* Begin PBXFrameworksBuildPhase section */ 36 | A5A88187223E2A1D0042303D /* Frameworks */ = { 37 | isa = PBXFrameworksBuildPhase; 38 | buildActionMask = 2147483647; 39 | files = ( 40 | ); 41 | runOnlyForDeploymentPostprocessing = 0; 42 | }; 43 | /* End PBXFrameworksBuildPhase section */ 44 | 45 | /* Begin PBXGroup section */ 46 | A5A88181223E2A1D0042303D = { 47 | isa = PBXGroup; 48 | children = ( 49 | A5A8818C223E2A1D0042303D /* VineLine */, 50 | A5A8818B223E2A1D0042303D /* Products */, 51 | ); 52 | sourceTree = ""; 53 | }; 54 | A5A8818B223E2A1D0042303D /* Products */ = { 55 | isa = PBXGroup; 56 | children = ( 57 | A5A8818A223E2A1D0042303D /* VineLine.app */, 58 | ); 59 | name = Products; 60 | sourceTree = ""; 61 | }; 62 | A5A8818C223E2A1D0042303D /* VineLine */ = { 63 | isa = PBXGroup; 64 | children = ( 65 | A5A8818D223E2A1D0042303D /* AppDelegate.swift */, 66 | A5A8818F223E2A1D0042303D /* ViewController.swift */, 67 | A5221EA8238D495700DE27F5 /* VineLineDrawingView.swift */, 68 | A5221EA6238D469E00DE27F5 /* Vine.swift */, 69 | A5EA4E02224A680C00E7B462 /* Branch.swift */, 70 | A53C000122675AF10017B23D /* UIColor+random.swift */, 71 | A5A88191223E2A1D0042303D /* Main.storyboard */, 72 | A5A88196223E2A1E0042303D /* LaunchScreen.storyboard */, 73 | A5A88194223E2A1E0042303D /* Assets.xcassets */, 74 | A5A88199223E2A1E0042303D /* Info.plist */, 75 | ); 76 | path = VineLine; 77 | sourceTree = ""; 78 | }; 79 | /* End PBXGroup section */ 80 | 81 | /* Begin PBXNativeTarget section */ 82 | A5A88189223E2A1D0042303D /* VineLine */ = { 83 | isa = PBXNativeTarget; 84 | buildConfigurationList = A5A8819C223E2A1E0042303D /* Build configuration list for PBXNativeTarget "VineLine" */; 85 | buildPhases = ( 86 | A5A88186223E2A1D0042303D /* Sources */, 87 | A5A88187223E2A1D0042303D /* Frameworks */, 88 | A5A88188223E2A1D0042303D /* Resources */, 89 | ); 90 | buildRules = ( 91 | ); 92 | dependencies = ( 93 | ); 94 | name = VineLine; 95 | productName = VineLine; 96 | productReference = A5A8818A223E2A1D0042303D /* VineLine.app */; 97 | productType = "com.apple.product-type.application"; 98 | }; 99 | /* End PBXNativeTarget section */ 100 | 101 | /* Begin PBXProject section */ 102 | A5A88182223E2A1D0042303D /* Project object */ = { 103 | isa = PBXProject; 104 | attributes = { 105 | LastSwiftUpdateCheck = 1010; 106 | LastUpgradeCheck = 1010; 107 | ORGANIZATIONNAME = "Michael Behan"; 108 | TargetAttributes = { 109 | A5A88189223E2A1D0042303D = { 110 | CreatedOnToolsVersion = 10.1; 111 | LastSwiftMigration = 1120; 112 | }; 113 | }; 114 | }; 115 | buildConfigurationList = A5A88185223E2A1D0042303D /* Build configuration list for PBXProject "VineLine" */; 116 | compatibilityVersion = "Xcode 9.3"; 117 | developmentRegion = en; 118 | hasScannedForEncodings = 0; 119 | knownRegions = ( 120 | en, 121 | Base, 122 | ); 123 | mainGroup = A5A88181223E2A1D0042303D; 124 | productRefGroup = A5A8818B223E2A1D0042303D /* Products */; 125 | projectDirPath = ""; 126 | projectRoot = ""; 127 | targets = ( 128 | A5A88189223E2A1D0042303D /* VineLine */, 129 | ); 130 | }; 131 | /* End PBXProject section */ 132 | 133 | /* Begin PBXResourcesBuildPhase section */ 134 | A5A88188223E2A1D0042303D /* Resources */ = { 135 | isa = PBXResourcesBuildPhase; 136 | buildActionMask = 2147483647; 137 | files = ( 138 | A5A88198223E2A1E0042303D /* LaunchScreen.storyboard in Resources */, 139 | A5A88195223E2A1E0042303D /* Assets.xcassets in Resources */, 140 | A5A88193223E2A1D0042303D /* Main.storyboard in Resources */, 141 | ); 142 | runOnlyForDeploymentPostprocessing = 0; 143 | }; 144 | /* End PBXResourcesBuildPhase section */ 145 | 146 | /* Begin PBXSourcesBuildPhase section */ 147 | A5A88186223E2A1D0042303D /* Sources */ = { 148 | isa = PBXSourcesBuildPhase; 149 | buildActionMask = 2147483647; 150 | files = ( 151 | A53C000222675AF10017B23D /* UIColor+random.swift in Sources */, 152 | A5EA4E03224A680C00E7B462 /* Branch.swift in Sources */, 153 | A5221EA9238D495700DE27F5 /* VineLineDrawingView.swift in Sources */, 154 | A5A88190223E2A1D0042303D /* ViewController.swift in Sources */, 155 | A5A8818E223E2A1D0042303D /* AppDelegate.swift in Sources */, 156 | A5221EA7238D469E00DE27F5 /* Vine.swift in Sources */, 157 | ); 158 | runOnlyForDeploymentPostprocessing = 0; 159 | }; 160 | /* End PBXSourcesBuildPhase section */ 161 | 162 | /* Begin PBXVariantGroup section */ 163 | A5A88191223E2A1D0042303D /* Main.storyboard */ = { 164 | isa = PBXVariantGroup; 165 | children = ( 166 | A5A88192223E2A1D0042303D /* Base */, 167 | ); 168 | name = Main.storyboard; 169 | sourceTree = ""; 170 | }; 171 | A5A88196223E2A1E0042303D /* LaunchScreen.storyboard */ = { 172 | isa = PBXVariantGroup; 173 | children = ( 174 | A5A88197223E2A1E0042303D /* Base */, 175 | ); 176 | name = LaunchScreen.storyboard; 177 | sourceTree = ""; 178 | }; 179 | /* End PBXVariantGroup section */ 180 | 181 | /* Begin XCBuildConfiguration section */ 182 | A5A8819A223E2A1E0042303D /* Debug */ = { 183 | isa = XCBuildConfiguration; 184 | buildSettings = { 185 | ALWAYS_SEARCH_USER_PATHS = NO; 186 | CLANG_ANALYZER_NONNULL = YES; 187 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 188 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 189 | CLANG_CXX_LIBRARY = "libc++"; 190 | CLANG_ENABLE_MODULES = YES; 191 | CLANG_ENABLE_OBJC_ARC = YES; 192 | CLANG_ENABLE_OBJC_WEAK = YES; 193 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 194 | CLANG_WARN_BOOL_CONVERSION = YES; 195 | CLANG_WARN_COMMA = YES; 196 | CLANG_WARN_CONSTANT_CONVERSION = YES; 197 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 198 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 199 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 200 | CLANG_WARN_EMPTY_BODY = YES; 201 | CLANG_WARN_ENUM_CONVERSION = YES; 202 | CLANG_WARN_INFINITE_RECURSION = YES; 203 | CLANG_WARN_INT_CONVERSION = YES; 204 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 205 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 206 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 207 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 208 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 209 | CLANG_WARN_STRICT_PROTOTYPES = YES; 210 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 211 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 212 | CLANG_WARN_UNREACHABLE_CODE = YES; 213 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 214 | CODE_SIGN_IDENTITY = "iPhone Developer"; 215 | COPY_PHASE_STRIP = NO; 216 | DEBUG_INFORMATION_FORMAT = dwarf; 217 | ENABLE_STRICT_OBJC_MSGSEND = YES; 218 | ENABLE_TESTABILITY = YES; 219 | GCC_C_LANGUAGE_STANDARD = gnu11; 220 | GCC_DYNAMIC_NO_PIC = NO; 221 | GCC_NO_COMMON_BLOCKS = YES; 222 | GCC_OPTIMIZATION_LEVEL = 0; 223 | GCC_PREPROCESSOR_DEFINITIONS = ( 224 | "DEBUG=1", 225 | "$(inherited)", 226 | ); 227 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 228 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 229 | GCC_WARN_UNDECLARED_SELECTOR = YES; 230 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 231 | GCC_WARN_UNUSED_FUNCTION = YES; 232 | GCC_WARN_UNUSED_VARIABLE = YES; 233 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 234 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 235 | MTL_FAST_MATH = YES; 236 | ONLY_ACTIVE_ARCH = YES; 237 | SDKROOT = iphoneos; 238 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 239 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 240 | }; 241 | name = Debug; 242 | }; 243 | A5A8819B223E2A1E0042303D /* Release */ = { 244 | isa = XCBuildConfiguration; 245 | buildSettings = { 246 | ALWAYS_SEARCH_USER_PATHS = NO; 247 | CLANG_ANALYZER_NONNULL = YES; 248 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 249 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 250 | CLANG_CXX_LIBRARY = "libc++"; 251 | CLANG_ENABLE_MODULES = YES; 252 | CLANG_ENABLE_OBJC_ARC = YES; 253 | CLANG_ENABLE_OBJC_WEAK = YES; 254 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 255 | CLANG_WARN_BOOL_CONVERSION = YES; 256 | CLANG_WARN_COMMA = YES; 257 | CLANG_WARN_CONSTANT_CONVERSION = YES; 258 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 259 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 260 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 261 | CLANG_WARN_EMPTY_BODY = YES; 262 | CLANG_WARN_ENUM_CONVERSION = YES; 263 | CLANG_WARN_INFINITE_RECURSION = YES; 264 | CLANG_WARN_INT_CONVERSION = YES; 265 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 266 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 267 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 268 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 269 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 270 | CLANG_WARN_STRICT_PROTOTYPES = YES; 271 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 272 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 273 | CLANG_WARN_UNREACHABLE_CODE = YES; 274 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 275 | CODE_SIGN_IDENTITY = "iPhone Developer"; 276 | COPY_PHASE_STRIP = NO; 277 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 278 | ENABLE_NS_ASSERTIONS = NO; 279 | ENABLE_STRICT_OBJC_MSGSEND = YES; 280 | GCC_C_LANGUAGE_STANDARD = gnu11; 281 | GCC_NO_COMMON_BLOCKS = YES; 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 = 13.0; 289 | MTL_ENABLE_DEBUG_INFO = NO; 290 | MTL_FAST_MATH = YES; 291 | SDKROOT = iphoneos; 292 | SWIFT_COMPILATION_MODE = wholemodule; 293 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 294 | VALIDATE_PRODUCT = YES; 295 | }; 296 | name = Release; 297 | }; 298 | A5A8819D223E2A1E0042303D /* Debug */ = { 299 | isa = XCBuildConfiguration; 300 | buildSettings = { 301 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 302 | CODE_SIGN_STYLE = Automatic; 303 | DEVELOPMENT_TEAM = 4LH2439X32; 304 | INFOPLIST_FILE = VineLine/Info.plist; 305 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 306 | LD_RUNPATH_SEARCH_PATHS = ( 307 | "$(inherited)", 308 | "@executable_path/Frameworks", 309 | ); 310 | PRODUCT_BUNDLE_IDENTIFIER = "dev.iosapp.vine-line"; 311 | PRODUCT_NAME = "$(TARGET_NAME)"; 312 | SWIFT_VERSION = 5.0; 313 | TARGETED_DEVICE_FAMILY = "1,2"; 314 | }; 315 | name = Debug; 316 | }; 317 | A5A8819E223E2A1E0042303D /* Release */ = { 318 | isa = XCBuildConfiguration; 319 | buildSettings = { 320 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 321 | CODE_SIGN_STYLE = Automatic; 322 | DEVELOPMENT_TEAM = 4LH2439X32; 323 | INFOPLIST_FILE = VineLine/Info.plist; 324 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 325 | LD_RUNPATH_SEARCH_PATHS = ( 326 | "$(inherited)", 327 | "@executable_path/Frameworks", 328 | ); 329 | PRODUCT_BUNDLE_IDENTIFIER = "dev.iosapp.vine-line"; 330 | PRODUCT_NAME = "$(TARGET_NAME)"; 331 | SWIFT_VERSION = 5.0; 332 | TARGETED_DEVICE_FAMILY = "1,2"; 333 | }; 334 | name = Release; 335 | }; 336 | /* End XCBuildConfiguration section */ 337 | 338 | /* Begin XCConfigurationList section */ 339 | A5A88185223E2A1D0042303D /* Build configuration list for PBXProject "VineLine" */ = { 340 | isa = XCConfigurationList; 341 | buildConfigurations = ( 342 | A5A8819A223E2A1E0042303D /* Debug */, 343 | A5A8819B223E2A1E0042303D /* Release */, 344 | ); 345 | defaultConfigurationIsVisible = 0; 346 | defaultConfigurationName = Release; 347 | }; 348 | A5A8819C223E2A1E0042303D /* Build configuration list for PBXNativeTarget "VineLine" */ = { 349 | isa = XCConfigurationList; 350 | buildConfigurations = ( 351 | A5A8819D223E2A1E0042303D /* Debug */, 352 | A5A8819E223E2A1E0042303D /* Release */, 353 | ); 354 | defaultConfigurationIsVisible = 0; 355 | defaultConfigurationName = Release; 356 | }; 357 | /* End XCConfigurationList section */ 358 | }; 359 | rootObject = A5A88182223E2A1D0042303D /* Project object */; 360 | } 361 | --------------------------------------------------------------------------------