Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Swift
  3. Toast-Swift

Toast-Swift

MITSwift2.1.3

A customizable iOS 14 style Toast view built with UIKit for Swift applications.

GitHubGitHub
776 stars92 forks0 contributors

What is Toast-Swift?

Toast-Swift is a UIKit-based library for displaying toast notifications in iOS applications. It provides a flexible and customizable way to show transient messages to users, mimicking the modern iOS 14 style while offering extensive configuration options for layout, animation, and behavior.

Target Audience

iOS developers using UIKit who need to implement toast notifications in their apps, particularly those seeking a native-looking component with deep customization capabilities.

Value Proposition

Developers choose Toast-Swift for its balance of Apple-inspired aesthetics and high flexibility, including support for custom views, animations, queues, and delegate hooks, all while maintaining ease of use through a simple API.

Overview

Customizable Swift Toast view built with UIKit. 🍞

Use Cases

Best For

  • Displaying transient user notifications in iOS apps with a native iOS 14 style
  • Implementing customizable toast animations like slide, fade, scale, or custom animations
  • Creating toast queues to show multiple notifications sequentially without overlap
  • Adding haptic feedback to toast notifications for enhanced user experience
  • Building custom toast views that deviate from the default Apple style while using the same library infrastructure
  • Attaching toast notifications to specific views within an app's interface for contextual display

Not Ideal For

  • SwiftUI-only projects without UIKit integration layers
  • Cross-platform apps needing notifications on Android or web
  • Applications requiring highly interactive toasts with embedded buttons or complex user inputs
  • Projects with strict performance budgets in animation-heavy interfaces

Pros & Cons

Pros

Extensive Customization Options

Offers detailed control over layout, animations (slide, fade, scale, custom), and dismissal methods (time, swipe, long press), as shown in the configurable ToastConfiguration.

Native iOS Aesthetics

Mimics the modern iOS 14 style with clean, Apple-inspired designs, ensuring seamless integration in UIKit-based apps.

Toast Queue Support

Includes ToastQueue class for sequential display of multiple toasts, preventing overlap and managing notification flows effectively.

Haptic Feedback Integration

Easily adds tactile responses using UINotificationFeedbackGenerator, with haptic types like success available in the show method parameters.

Cons

UIKit Dependency

Built solely for UIKit, requiring additional work like UIViewRepresentable for SwiftUI projects, which can complicate modern app development.

Limited Built-in Accessibility

The README doesn't mention accessibility features such as VoiceOver support, potentially leaving gaps for apps needing compliance with iOS accessibility standards.

Custom View Complexity

Creating fully custom toast views requires implementing the ToastView protocol, adding development overhead compared to simpler, drop-in libraries.

Frequently Asked Questions

Quick Stats

Stars776
Forks92
Contributors0
Open Issues8
Last commit6 months ago
CreatedSince 2021

Tags

#ios#open-source#animation#haptic-feedback#customizable#notification#delegates#ui-components#toast#toast-notifications#swift#uikit

Built With

U
UIKit
S
Swift

Included in

Swift26.0k
Auto-fetched 1 day ago

Related Projects

SwiftMessagesSwiftMessages

A very flexible message bar for UIKit and SwiftUI.

Stars7,555
Forks765
Last commit4 months ago
SwiftEntryKitSwiftEntryKit

SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps.

Stars6,761
Forks624
Last commit2 years ago
Alerts & PickersAlerts & Pickers

Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...

Stars5,761
Forks706
Last commit2 years ago
SCLAlertView-SwiftSCLAlertView-Swift

Beautiful animated Alert View. Written in Swift

Stars5,319
Forks752
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub