diff --git a/Sources/ClassOfDevice.swift b/Sources/ClassOfDevice.swift index 057a2faeb..c5337c4c7 100644 --- a/Sources/ClassOfDevice.swift +++ b/Sources/ClassOfDevice.swift @@ -6,6 +6,8 @@ // Copyright © 2018 PureSwift. All rights reserved. // +import Foundation + public struct ClassOfDevice { internal static let length = 3 @@ -73,6 +75,11 @@ public extension ClassOfDevice { public enum MajorServiceClass: UInt16, BitMaskOption { + #if swift(>=3.2) + #elseif swift(>=3.0) + public typealias RawValue = UInt16 + #endif + /// Limited Discoverable Mode [Ref #1] case limitedDiscoverable = 0b01