user3608914 user3608914 - 1 year ago 151
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 Source

its working fine but syntax is changed

  let frame =
    let x = frame.integral
    frame.insetBy(dx: 0, dy: 0)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download