Skip to content

Commit

Permalink
SDK overlay: LAErrorDomain not actually available on 8.0-8.2, adjust …
Browse files Browse the repository at this point in the history
…availability

rdar://22755624

Swift SVN r32259
  • Loading branch information
gribozavr committed Sep 26, 2015
1 parent 586ccae commit 03d3e4d
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
@exported import LocalAuthentication
import Foundation

@available(OSX, introduced=10.10) @available(iOS, introduced=8.0)
@available(OSX 10.10, iOS 8.0, *)
extension LAError : _BridgedNSError {
public static var _NSErrorDomain: String { return LAErrorDomain }
public static var _NSErrorDomain: String {
if #available(OSX 10.10, iOS 8.3, *) {
return LAErrorDomain
}
return "com.apple.LocalAuthentication"
}
}

0 comments on commit 03d3e4d

Please sign in to comment.