I'm building a class to handle with a basic graphic. I'm a newby and I'm on a self learning project to build small apps in Swift for IOS devices, since I found the language very easy to learn.
I've set in my class of type UIView
two constants of type CGPoint
:
let heigh = bounds.size.heigh
let width = bounds.size.width
These 2 variables are CGFloat
, but I need them to be Int.
Appreciate help to convert them to these type value.