mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Introduce a number of small overlays to bridge the NSError domains for a number of frameworks into existing imported enums. This batch only covers cases where there is an existing NS_ENUM describing the codes for the domain, so we need only extend that enum to provide the appropriate _BridgedNSError conformance. This is the bulk of rdar://problem/20536610. Swift SVN r28585
8 lines
230 B
Swift
8 lines
230 B
Swift
@exported import LocalAuthentication
|
|
import Foundation
|
|
|
|
@available(OSX, introduced=10.10) @available(iOS, introduced=8.0)
|
|
extension LAError : _BridgedNSError {
|
|
public static var _NSErrorDomain: String { return LAErrorDomain }
|
|
}
|