user3608914 user3608914 - 8 days ago 9
iOS Question

Cannot seem to use CGRectIntegral and CGInsect Functions in Swift

Sorry for the novice questions.

But just ask the title suggests, i can't seem to use these functions in swift 3.. I have tried imported CoreGraphics library, but to no vail.

Anyone knows why?

Thanks in advance.

Answer

its working fine but syntax is changed

  let frame = CGRect.zero
    let x = frame.integral
    frame.insetBy(dx: 0, dy: 0)