I am trying to compile my project in Xcode 10.0 beta (10L176w) (10L176w) ... I am getting the error 'frame' is only available on iOS 12.0 or newer
Here is my code
@IBAction func btnAddToCartAction(_ sender: AnyObject) {
let btnCart:UIButton = sender as! UIButton
let boundsCenter:CGPoint = btnCart.bounds.offsetBy(dx: sender.frame.size.width/2, dy: btnCart.frame.size.height/2).origin;
}
Which compiles fine in Xcode 9