A Swift library for displaying Android-like toast notifications with a simple interface.
Toaster is a Swift library for displaying Android-like toast notifications in iOS, macOS, and other Apple platform apps. It solves the need for a simple, non-intrusive way to show temporary messages, such as alerts or confirmations, without blocking user interaction. The library centralizes toast management to handle queuing and provides extensive customization options.
iOS and macOS developers who need a lightweight, customizable toast notification system for their Swift-based applications. It's ideal for those who prefer Android's toast style or want an alternative to native iOS alert dialogs for non-critical messages.
Developers choose Toaster for its dead-simple API, robust feature set (like queueing and accessibility support), and high customizability via UIAppearance. It's a battle-tested, well-maintained library that works across all Apple platforms with minimal setup.
🍞 Toast for Swift
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
The library offers a minimal interface with just `Toast(text: "message").show()`, making it quick to integrate as shown in the 'At a Glance' section of the README.
Centralized toast center manages multiple notifications to prevent overlap, ensuring messages are displayed sequentially without interference, a key feature highlighted in the README.
Supports UIAppearance for styling background color, corner radius, text properties, shadows, and positioning, with a detailed table of properties in the Appearance section.
Built-in VoiceOver integration with UIAccessibility is enabled by default, and it can be disabled via `ToastCenter.default.isSupportAccessibility`, making it suitable for accessible apps.
Limited to Apple platforms only, so it's not suitable for projects that need cross-platform consistency or target non-Apple devices, as stated in the compatibility section.
Toasts are display-only and do not support buttons or user interactions, which might be a limitation for apps requiring actionable notifications beyond simple messages.
As a third-party library, it adds external code to the project, which could introduce maintenance issues or breaking changes, though it's well-maintained with Swift version support.