This library was created during the development of one of Reality Games' games out of need. It has all the features I needed during development and plenty of room for extensions
- Swift 2.3
- iOS 9.3
For now RGSnackBar runs on Swift 2.3 as that's what I personally need, but it will be migrated to Swift 3 and later Swift 4 when needed.
The target platform is iOS 9.0, but I have tested it on 9.3 only, so please be careful
RGSnackBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RGSnackBar"
Basically you'll need an RGMessageQueue
with some kind of RGMessagePresenter
. How you decide to do it is completely up to you. This lib comes with two presenters: RGMessageConsolePresenter
and RGMessageSnackBarPresenter
, but I strongly encourage you to write your own presenters for anything you like. Perhaps a system-banner like presentation? Who knows? Only you. ( ͡° ͜ʖ ͡° )
- Prioritized messages thanks to SwiftPriorityQueue
- Easy and dynamic layout for
RGSnackBarPresenter
thanks to Stevia - Completely customizable animations for
RGSnackBarView
with slide up and zoom in already made - Base class
RGMessageView
for endless possibilities - want a snack bar? Here! Want a banner? Make one!
To run the example project, clone the repo, and run pod install
from the Example directory first.
Me, a Senior iOS Developer at Reality Games.
- 0.1
- Initial release
- 0.2
- Easier styling
- Better example
Feel free to fork this repository, make your changes and create a pull request. Your additions are very welcome! 😉
RGSnackBar is available under the MIT license. See the LICENSE file for more info.