iOS 10 in Swift 3