Skip to content

More ergonomic SwiftUI API when a view has many things to toast #36

Description

@KyNorthstar

For example, if a view has several error states, it'd be more ergonomic to have one error object which can be set, and if so, a toast appears.

HStack {
    // ...
}
.toast(item: $currentError) { currentError in
    Text(currentError.localizedDescription)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions