Swift - the error "Expected", "delimiter" and "Expected expression in the list of expressions",

let screenBounds = UIScreen.mainScreen().bounds var initialOrigin: CGFloat = UIScreen.mainScreen().bounds.height - 108 let offset: CGFloat = 108 var lastItem: ViewModel? var currentURIs = [NSURL]() lazy var panRecognizer: UIPanGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(PlayerController.handlePanGesture(_:))) lazy var tapRecognizer: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(PlayerController.handleTapGesture(_:))) 

Getting the errors 'Expected ',' separator' and 'Expected expression in list of expressions' for the above code. It would be great ... if someone enlightens me ...

+5
source share
1 answer

Upgrade Xcode to 7.3 New Syntax # selector will only work in Xcode 7.3 (or later)

+11
source

Source: https://habr.com/ru/post/1246198/


All Articles