- August 27, 2025
- Mins Read
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or macOS applications in SwiftUI. Because of the flexibility to show any content it is also possible to use the library for showing simple modals.
You decide the content, the library takes care about the rest.
Modifier | Demo |
---|---|
.slide | ![]() |
.fade | ![]() |
.scale | ![]() |
.skew | ![]() |
dependencies: [
.package(url: “https://github.com/sanzaru/SimpleToast.git”, from: “0.0.1”)
]
Add the following line to your Podfile:
pod ‘SwiftUI-SimpleToast’, ‘~> 0.6.2’
and run
pod install
or
pod update
š For more information on how to use SimpleToast, see theĀ documentation on usage.
The toast can be configured via an optional SimpleToastOptions object. You can simply pass an empty object to configure the toast with default values.
Option | Type | Description | Default |
---|---|---|---|
alignment | Alignment | Defines the alignment of the toast. | .top |
hideAfter | TimeInterval? | Defines when the toast disappears. If nil is given the toast won’t disappear. | nil |
backdrop | Color? | Defines the backdrop color | nil |
animation | Animation | Defines the animation type. | .linear |
modifierType | ModifierType | Defines the type of toast animation. Possible values: .slide, .fade | .fade |
dismissOnTap | Bool? | Defines if the toast closes on tap. Possible values: true, false | true |
disableDragGesture | Bool | Defines if the toast reacts to drag gestures. Possible values: true, false | false |
This package provides you with an easy way to show tooltips over any SwiftUI view, since Apple does not provide ...
Create Toast Views with Minimal Effort in SwiftUI Using SSToastMessage. SSToastMessage enables you to effortlessly add toast notifications, alerts, and ...
A µFramework for showing alerts like the one used when copying from pasteboard or connecting Apple pencil.