Skip to content

Commit

Permalink
Make Bindable unavailable to visionOS
Browse files Browse the repository at this point in the history
Fixes #76.
  • Loading branch information
stephencelis committed May 30, 2024
1 parent 9b77fbd commit 662d90d
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions Sources/Perception/Bindable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@
/// perceptible objects.
///
/// A backport of SwiftUI's `Bindable` property wrapper.
@available(iOS, introduced: 13, obsoleted: 17, message: "Use @Bindable without the 'Perception.' prefix.")
@available(macOS, introduced: 10.15, obsoleted: 14, message: "Use @Bindable without the 'Perception.' prefix.")
@available(tvOS, introduced: 13, obsoleted: 17, message: "Use @Bindable without the 'Perception.' prefix.")
@available(watchOS, introduced: 6, obsoleted: 10, message: "Use @Bindable without the 'Perception.' prefix.")
@available(visionOS, obsoleted: 9999, message: "Use @Bindable without the 'Perception.' prefix.")
@available(
iOS, introduced: 13, obsoleted: 17,
message: "Use '@Bindable' without the 'Perception.' prefix."
)
@available(
macOS, introduced: 10.15, obsoleted: 14,
message: "Use '@Bindable' without the 'Perception.' prefix."
)
@available(
tvOS, introduced: 13, obsoleted: 17,
message: "Use '@Bindable' without the 'Perception.' prefix."
)
@available(
visionOS, unavailable,
message: "Use '@Bindable' without the 'Perception.' prefix."
)
@available(
watchOS, introduced: 6, obsoleted: 10,
message: "Use '@Bindable' without the 'Perception.' prefix."
)
@dynamicMemberLookup
@propertyWrapper
public struct Bindable<Value> {
Expand Down

0 comments on commit 662d90d

Please sign in to comment.