Coder Social home page Coder Social logo

hjtoast's Introduction

HJToast

CI Status Version License Platform

HJToast is a customised library for Toast or SnackBar, that comes with powerful feature of accessory views. It can be used to display the short messages or events over the view.

Requirements

Xcode 7.0+ and Swift 2.0

Demo

Coming soon..

Adding HJToast to your project

CocoaPods

CocoaPods is the recommended way to add HJToast to your project.

  1. Add a pod entry for HJToast to your Podfile pod 'HJToast'
  2. Install the pod by running pod install.
  3. Include HJToast wherever you need it with import HJToast.

Params

font              - The font for the displayed message (default: system-regular-12.0pt)
textColor         - Text color for the displayed message (default: whiteColor)
textAlignment     - Text Alignment for displayed message (default: Center)
toastDuration     - Duration for which toast will present in view (default: Text reading time)
animateDuration   - Duration of animation while toast will slide up and down (default: 0.25)
edgeInsets        - Edge insets for toast subviews (default: UIEdgeInsetsMake(10, 10, 10, 10))

leftView          - Optional left view for toast
rightView         - Optional right view to toast

Example

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

Author

Himanshu Joshi

License

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

hjtoast's People

Contributors

himanshujoshi47 avatar shabib87 avatar

Watchers

 avatar  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.