Swift FAQ

From PeformIQ Upgrade
Jump to navigation Jump to search

How do I do this in Swift 3?

In draw() Related Methods

CGPointMake()

Use of unresolved identifier 'CGPointMake'

Use:

CGPoint(x: 2.0, y:2.0)

NSMakeRect(42, 35, 117, 55)


Attributed Strings

Check here - http://stackoverflow.com/questions/24666515/how-do-i-make-an-attributed-string-using-swift