how to disable uitableview selection in swift

Swift
tableView.allowsSelection = false
Source

Also in Swift: