-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.property wrappersFeature: property wrappersFeature: property wrappersprotocolFeature → type declarations: Protocol declarationsFeature → type declarations: Protocol declarationsswift 5.7type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis
Description
In the View
file of this project, note that StateObject.Collection
, which is a type alias defined in a protocol, can be instantiated via (wrappedValue: …
. But it cannot be used as a property wrapper.
Also note that ObservedObject.Collection
can be used as a property wrapper. The difference is that this latter example is defined in an extension to ObservedObject
.
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.property wrappersFeature: property wrappersFeature: property wrappersprotocolFeature → type declarations: Protocol declarationsFeature → type declarations: Protocol declarationsswift 5.7type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis