Swift FAQ

From PeformIQ Upgrade
Revision as of 20:55, 16 October 2021 by PeterHarding (talk | contribs) (Created page with "=How do I do this in Swift 3?= == In draw() Related Methods== ===CGPointMake()=== Use of unresolved identifier 'CGPointMake' Use: <pre> CGPoint(x: 2.0, y:2.0) </pre> ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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