Message bars, banners and custom popups for iOS apps in UIKit and SwiftUI
open sourceMITfree
SwiftMessages shows message views and view controllers at the top, bottom or centre of the screen, or behind navigation and tab bars, in UIKit and SwiftUI apps. It comes with nib-based layouts and themes you can copy and change, or shows any view you supply, and it queues messages, removes duplicates, dims the background, dismisses with interactive gestures and announces messages to VoiceOver.
Problems it solves
- show an in-app notification banner at the top of the screen in my iOS app
- display a toast or snackbar message in a SwiftUI app
- queue alert banners so they show one at a time in an iOS app
Features
- Show messages at the top, bottom or centre, or behind navigation and tab bars
- Bundled nib-based layouts and themes you can copy and change
- Show any UIKit or SwiftUI view as a message
- Message queue with duplicate removal
- Interactive dismiss gestures and background dimming
- VoiceOver announcements for messages
- Keyboard avoidance with KeyboardTrackingView
- Custom view controller presentation
Limitations
Alternatives
The same job
These do what SwiftMessages does.
- PopupView Toasts, alerts, floaters, sheets and popups for SwiftUI
