ios - Ambiguous reference for label frame and '-' in swift 3 on updating to XCode 8.3 -


i updated xcode version 8.3 , on reopening project started receiving following errors.

  1. ambiguous reference member '-'

    let frame = (frame: cgrect(x: 80.0, y: 140.0, width: ((self.view.bounds.size.width - 160.0)), height: 40)) 
  2. ambiguous reference member 'frame'

    let frame2 = (frame: cgrect(x: 80.0, y: self.loginbutton.frame.maxy + 40.0, width: (self.view.bounds.size.width - 160.0), height: 40)) 

what frame:?

just do:

let frame = cgrect(x: 80.0, y: 140.0, width: self.view.bounds.size.width - 160.0, height: 40) 

and:

let frame2 = cgrect(x: 80.0, y: self.loginbutton.frame.maxy + 40.0, width: self.view.bounds.size.width - 160.0, height: 40) 

Comments