Try this:
let path = CGMutablePath()
path.move(to: CGPoint(x: 30, y: 0))
CGPath APIs are now imported as instance methods in Swift 3.
You can check them with Command-clicking on CGMutablePath
.
Or see the latest reference of CGMutablePath.
More Related Contents:
- Swift 3 incorrect string interpolation with implicitly unwrapped Optionals
- How to convert Data to hex string in swift
- How to provide a localized description with an Error type in Swift?
- Waiting until the task finishes
- How do I dispatch_sync, dispatch_async, dispatch_after, etc in Swift 3, Swift 4, and beyond?
- What are the new “for”, “at”, “in” keywords in Swift3 function declarations?
- The “++” and “–” operators have been deprecated Xcode 7.3
- What is the ‘open’ keyword in Swift?
- Non-‘@objc’ method does not satisfy optional requirement of ‘@objc’ protocol
- Accessing code in Swift 3 Error
- What is a good example to differentiate between fileprivate and private in Swift3
- Swift 3 first parameter names
- Swap rootViewController with animation?
- Why do Self and self sometimes refer to different types in static functions?
- Knowing where retain cycles are and removing them
- xcode 8 beta 3: Expected ‘,’ joining parts of a multi-clause condition
- Add Local Notification in iOS 10 – Swift 3
- “classname has no member functionname” when adding UIButton target
- Make code with Firebase asynchronous
- Convert Swift Array to Dictionary with indexes [duplicate]
- Swift3 optionals chaining in IF conditions bug?
- How can I disambiguate a type and a module with the same name?
- How can I switch views programmatically in a view controller? (Xcode, iPhone)
- How do you enumerate OptionSetType in Swift?
- How to get user home directory path (Users/”user name”) without knowing the username in Swift3
- Swift find all occurrences of a substring
- Equivalent of or alternative to CGPathApply in Swift?
- Core Data Predicate Filter By Today’s Date
- AVAudioEngine downsample issue
- Whats the Swift animate WithDuration syntax?