Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Bindable unavailable to visionOS #77

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading