From 57095e817951bc9fe589a86d07242791b74522db Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Tue, 5 Nov 2024 19:23:50 -0500 Subject: [PATCH] #139 Deprecate `BitMaskOption` --- Sources/Bluetooth/BitMaskOption.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Bluetooth/BitMaskOption.swift b/Sources/Bluetooth/BitMaskOption.swift index 9591c0f2b..a76c42352 100644 --- a/Sources/Bluetooth/BitMaskOption.swift +++ b/Sources/Bluetooth/BitMaskOption.swift @@ -9,6 +9,7 @@ /// Enum that represents a bit mask flag / option. /// /// Basically `Swift.OptionSet` for enums. +@available(*, deprecated, message: "Use OptionSet instead") public protocol BitMaskOption: RawRepresentable, Hashable, CaseIterable where RawValue: FixedWidthInteger { } public extension Sequence where Element: BitMaskOption { @@ -40,7 +41,7 @@ public extension BitMaskOption { /// Integer-backed array type for `BitMaskOption`. /// /// The elements are packed in the integer with bitwise math and stored on the stack. -@frozen +@available(*, deprecated, message: "Use OptionSet instead") public struct BitMaskOptionSet : RawRepresentable { public typealias RawValue = Element.RawValue