A Swift-based iOS implementation of Android's Snackbar for displaying brief messages and actions with customizable animations.
TTGSnackbar is a Swift library for iOS that displays brief, temporary messages and action buttons at the top or bottom of the screen, similar to Android's Snackbar component. It solves the need for unobtrusive user notifications with interactive options, supporting multiple animations, custom views, and gesture controls.
iOS developers building apps that require user notifications, alerts, or temporary messages with action buttons, particularly those seeking a Material Design-inspired component.
Developers choose TTGSnackbar for its easy integration, high customizability, and faithful adaptation of Android's Snackbar to iOS, offering a wide range of animations and features not typically found in native iOS alert systems.
TTGSnackbar shows simple message and action button on the bottom or top of the screen with multi kinds of animation, which is written in Swift3 and inspired by Snackbar in Android. It also support showing custom view, icon image or multi action button.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Faithfully implements the Android Snackbar pattern with multiple animation types like slide and fade, as demonstrated in the README examples, providing a familiar experience for cross-platform developers.
Supports deep customization including colors, fonts, durations, margins, and embedding custom views or icons, detailed in the customization section for tailored app integration.
Includes tap and swipe gesture callbacks for user interaction, allowing dismissals and custom behaviors, such as changing animation types on swipe as shown in the README.
Provides TTGSnackbarManager to handle showing one snackbar at a time automatically, simplifying state management and preventing overlaps in notifications.
Brings Android's Material Design aesthetics to iOS, which may clash with apps following Apple's Human Interface Guidelines and require additional styling to blend in.
Built solely on UIKit, making it incompatible with SwiftUI without cumbersome wrappers, thus limiting adoption in modern SwiftUI-based projects.
For basic notifications, the extensive feature set and customization options add unnecessary complexity compared to lightweight native solutions like UIAlertController.