I am following along a YouTube video tutorial on Swipe Gestures. The code I am writing is exactly as being shown in the tutorial, but I an getting the error (Cannot assign to property: "description" property is immutable error) on the line (leftSwipe.description = .Left)
override func viewDidLoad() {
super.viewDidLoad()
var leftSwipe = UISwipeGestureRecognizer(target: self, action: Selector("handleSwipes"))
leftSwipe.description = .Left
}
The tutorial author is writing it exactly the same way but not getting the error I am getting. I would be grateful for help. Link to the YouTubeVideo Tutorial I am following is: https://www.youtube.com/watch?v=9r1UFNeVuFA