Skip to content

Commit

Permalink
#102 importing Foundation, fix for swift 3
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos21 committed Aug 1, 2018
1 parent 3f2871b commit f48e8c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/ClassOfDevice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2018 PureSwift. All rights reserved.
//

import Foundation

public struct ClassOfDevice {

internal static let length = 3
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f48e8c1

Please sign in to comment.