Files
swift-mirror/stdlib/public/SDK/HomeKit/HomeKit.swift
Doug Gregor 3561cfc8bd Bridge 15 NSError error domains into their corresponding enums.
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
2015-05-14 22:34:29 +00:00

11 lines
289 B
Swift

@exported import HomeKit
import Foundation
// FIXME: HMErrorDomain has @available(iOS 8.0), but NMErrorCode does not.
extension HMErrorCode : _BridgedNSError {
public static var _NSErrorDomain: String {
guard #available(iOS 8.0, *) else { return "" }
return HMErrorDomain
}
}