MappedState

@available(*, deprecated)
@propertyWrapper
public struct MappedState<State> : DynamicProperty

Retrieves a mapping of the application state from the environment and provides it to a property in a SwiftUI view.

struct MyView : View {
  @MappedState var todoList: TodoList
}
  • Undocumented

    Declaration

    Swift

    public var wrappedValue: State { get }
  • Declaration

    Swift

    public mutating func update()
  • Undocumented

    Declaration

    Swift

    public init()