Snackbar

A Snackbar provides brief messages about app processes at the bottom of screen.

Backpack/Snackbar

Cocoapods class reference view on Github

With text

Day Night

With text and button

Day Night

With text and icon only button

Day Night

Installation

In Podfile add

pod 'Backpack/Snackbar'

and then run pod install.

Usage

Backpack/Snackbar contains a Backpack Snackbar component in the class BPKSnackbar. It can display a view at the bottom of the screen that appears and disappear with an animation.


                                                
                                                #import <Backpack/Snackbar.h>
                                                
                                                BPKSnackbar *snackBar = [[BPKSnackbar alloc] initWithTitle:@"Snackbar Title"
                                                                                                  duration:BPKSnackbarDurationShort
                                                                                            viewController:self.parentViewController
                                                                                                  delegate:nil];
                                                [snackBar show];

                                                
                                                import Backpack
                                                
                                                let snackbar = BPKSnackbar.init(title: "Snackbar Title",
                                                                             duration: .long,
                                                                       viewController: self,
                                                                             delegate: nil)
                                                
                                                snackbar.show()