Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions Sources/Atoms/Modifier/ChangesOfModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public extension Atom {
/// - Parameter keyPath: A key path for the property of the original atom value.
///
/// - Returns: An atom that provides the partial property of the original atom value.
#if hasFeature(InferSendableFromCaptures)
#if compiler(>=6) || hasFeature(InferSendableFromCaptures)
func changes<T: Equatable>(
of keyPath: KeyPath<Produced, T> & Sendable
) -> ModifiedAtom<Self, ChangesOfModifier<Produced, T>> {
Expand Down Expand Up @@ -57,7 +57,7 @@ public struct ChangesOfModifier<Base, Produced: Equatable>: AtomModifier {
}
}

#if hasFeature(InferSendableFromCaptures)
#if compiler(>=6) || hasFeature(InferSendableFromCaptures)
private let keyPath: KeyPath<Base, Produced> & Sendable

internal init(keyPath: KeyPath<Base, Produced> & Sendable) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Atoms/PropertyWrapper/ViewContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public struct ViewContext: DynamicProperty {
/// This property provides primary access to the view context. However you don't
/// access ``wrappedValue`` directly.
/// Instead, you use the property variable created with the `@ViewContext` attribute.
#if hasFeature(DisableOutwardActorInference)
#if compiler(>=6) || hasFeature(DisableOutwardActorInference)
@MainActor
#endif
public var wrappedValue: AtomViewContext {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Atoms/PropertyWrapper/Watch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public struct Watch<Node: Atom>: DynamicProperty {
/// access ``wrappedValue`` directly. Instead, you use the property variable created
/// with the `@Watch` attribute.
/// Accessing this property starts watching the atom.
#if hasFeature(DisableOutwardActorInference)
#if compiler(>=6) || hasFeature(DisableOutwardActorInference)
@MainActor
#endif
public var wrappedValue: Node.Produced {
Expand Down
4 changes: 2 additions & 2 deletions Sources/Atoms/PropertyWrapper/WatchState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public struct WatchState<Node: StateAtom>: DynamicProperty {
/// with the `@WatchState` attribute.
/// Accessing to the getter of this property starts watching the atom, but doesn't
/// by setting a new value.
#if hasFeature(DisableOutwardActorInference)
#if compiler(>=6) || hasFeature(DisableOutwardActorInference)
@MainActor
#endif
public var wrappedValue: Node.Produced {
Expand All @@ -64,7 +64,7 @@ public struct WatchState<Node: StateAtom>: DynamicProperty {
/// To get the ``projectedValue``, prefix the property variable with `$`.
/// Accessing this property itself does not start watching the atom, but does when
/// the view accesses to the getter of the binding.
#if hasFeature(DisableOutwardActorInference)
#if compiler(>=6) || hasFeature(DisableOutwardActorInference)
@MainActor
#endif
public var projectedValue: Binding<Node.Produced> {
Expand Down
4 changes: 2 additions & 2 deletions Sources/Atoms/PropertyWrapper/WatchStateObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public struct WatchStateObject<Node: ObservableObjectAtom>: DynamicProperty {
/// access ``wrappedValue`` directly. Instead, you use the property variable created
/// with the `@WatchStateObject` attribute.
/// Accessing this property starts watching the atom.
#if hasFeature(DisableOutwardActorInference)
#if compiler(>=6) || hasFeature(DisableOutwardActorInference)
@MainActor
#endif
public var wrappedValue: Node.Produced {
Expand All @@ -95,7 +95,7 @@ public struct WatchStateObject<Node: ObservableObjectAtom>: DynamicProperty {
///
/// Use the projected value to pass a binding value down a view hierarchy.
/// To get the projected value, prefix the property variable with `$`.
#if hasFeature(DisableOutwardActorInference)
#if compiler(>=6) || hasFeature(DisableOutwardActorInference)
@MainActor
#endif
public var projectedValue: Wrapper {
Expand Down
Loading