Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiaanJansen committed Sep 16, 2023
2 parents b045c43 + 3d12c7d commit 114b478
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@ let toast = Toast.custom(view: customToastView)
toast.show()
```

### Queues
To show toasts after each other, use the `ToastQueue` class:

```swift
let toast1 = Toast.text("Notification 1")
let toast2 = Toast.text("Notification 2")
let toast3 = Toast.text("Notification 3")

let queue = ToastQueue(toasts: [toast1, toast2, toast3])

queue.show()
```

### Delegates
Below delegate functions are optional to implement when implementing `ToastDelegate`.

Expand Down

0 comments on commit 114b478

Please sign in to comment.