Latest 0.1.0
License MIT
Platforms ios 8.0

CI Status

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.


Xcode 7.0+ and Swift 2.0


Coming soon..

Adding HJToast to your project


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.


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


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


Himanshu Joshi


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

Latest podspec

    "name": "HJToast",
    "version": "0.1.0",
    "summary": "A toast with accessory left and right views including title.",
    "description": "TODO: A toast and a snack bar view which is highly customised to provide the accessory views (left and right). Generally used to show short messages over the view.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Himanshu Joshi": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "8.0"
    "source_files": "HJToast/Classes/**/*"

Pin It on Pinterest

Share This