CGPointMake in Swift CGPointMake in Swift ios ios

CGPointMake in Swift


You call it a little differently, without the make.

CGPoint(x: 10, y: 20)


Xcode 6.3.1 shows 4 different Swift initializers for CGPoint. They are:

CGPoint()CGPoint(x: CGFloat, y: CGFloat)CGPoint(x: Double, y: Double)CGPoint(x: Int, y: Int)


matomo