BlueHuskyStudios / BlueHuskyStudios/Howl

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

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
enhancement SwiftUI
Dominant language
Swift
Stars
34
Forks
9
PR merge metrics
No merged PRs in 30d

Description

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.

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

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue provides a SwiftUI call site using `.toast(item: $currentError)` and an error value's `localizedDescription`, but names no files or tests. Start by locating the existing toast API and its tests, then determine how an optional error item should drive presentation. Done means the shown usage works for multiple error states without separate toast calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.