Here i want to convert UIImageView
's maxY
CGRect
value to CGPoint
, but when i tried to convert CGRect
value to CGPoint
i got an error.
- Code
let cgPoint = imgPin.convert(imgPin.frame.minY, to: self.view)
- Error
Expression type '@lvalue CGRect' is ambiguous without more context