Coder Social home page Coder Social logo

rgsnackbar's Introduction

RGSnackBar logo

RGSnackBar

CI Status Version License Platform

About

Total customization! Zoom in animation!

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

Requirements

  • 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

Installation

RGSnackBar is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "RGSnackBar"

Usage

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. ( ͡° ͜ʖ ͡° )

Features

  • 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!

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Me, a Senior iOS Developer at Reality Games.

Changelog

  • 0.1
    • Initial release
  • 0.2
    • Easier styling
    • Better example

Contributing

Feel free to fork this repository, make your changes and create a pull request. Your additions are very welcome! 😉

License

RGSnackBar is available under the MIT license. See the LICENSE file for more info.

rgsnackbar's People

Contributors

jdarowski avatar

Stargazers

MoeB avatar Michele Longhi avatar  avatar xavi.ramos avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.