Material-style snack bar for iOS.
DRNSnackBar
supports not only iPhone but also iPad.
- iPad landscape
- iPad portrait
- iPhone
Import DRNSnackBar
.
#import <DRNSnackbar/DRNSnackBar.h>
How to show snack bar with text
[[DRNSnackBar makeText:@"Text"] show];
Also, you can set both delay and duration.
- Make text with duration
[[DRNSnackBar makeText:@"Text"
duration:.3f] show];
- Make text with delay and duration
[[DRNSnackBar makeText:@"Text"
delay:1.0f
duration:.3f] show];
- Action Button.
DRNSnackBar
is under WTFPL. You can do what the fuck you want with this shit. See LICENSE file for more info.