From 3aa58c9a775dc620c3f617f31c154f1dcf90446a Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Tue, 28 May 2024 11:22:52 -0700 Subject: [PATCH] wip --- Sources/Perception/Internal/Locals.swift | 9 +++++++++ Sources/Perception/WithPerceptionTracking.swift | 10 ---------- 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 Sources/Perception/Internal/Locals.swift diff --git a/Sources/Perception/Internal/Locals.swift b/Sources/Perception/Internal/Locals.swift new file mode 100644 index 0000000..e2f20ff --- /dev/null +++ b/Sources/Perception/Internal/Locals.swift @@ -0,0 +1,9 @@ +@available(iOS, deprecated: 17) +@available(macOS, deprecated: 14) +@available(tvOS, deprecated: 17) +@available(visionOS, deprecated: 9999) +@available(watchOS, deprecated: 10) +public enum _PerceptionLocals { + @TaskLocal public static var isInPerceptionTracking = false + @TaskLocal public static var skipPerceptionChecking = false +} diff --git a/Sources/Perception/WithPerceptionTracking.swift b/Sources/Perception/WithPerceptionTracking.swift index 5e41357..7d5266b 100644 --- a/Sources/Perception/WithPerceptionTracking.swift +++ b/Sources/Perception/WithPerceptionTracking.swift @@ -157,14 +157,4 @@ self.content = content } } - - @available(iOS, deprecated: 17) - @available(macOS, deprecated: 14) - @available(tvOS, deprecated: 17) - @available(visionOS, deprecated: 9999) - @available(watchOS, deprecated: 10) - public enum _PerceptionLocals { - @TaskLocal public static var isInPerceptionTracking = false - @TaskLocal public static var skipPerceptionChecking = false - } #endif