Skip to content

Commit 536df86

Browse files
committed
Switch Observable to be a non-marker protocol
With support for redundant conformance declarations via macros, the `Observable` protocol can be a non-marker protocol, which provides more flexibility for evolution in the future. rdar://111463883
1 parent 12ebe0a commit 536df86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Observation/Sources/Observation/Observable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/// the ``Observation/Observable-swift.macro`` macro when adding observation
1919
/// support to a type.
2020
@available(SwiftStdlib 5.9, *)
21-
@_marker public protocol Observable { }
21+
public protocol Observable { }
2222

2323
#if $Macros && hasAttribute(attached)
2424

0 commit comments

Comments
 (0)