Latest 1.0.0
Homepage https://github.com/hahnah/HNToaster
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

Screenshot

screenshot

Installation

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

pod 'HNToaster'

Usage

First of all, import HNToaster in your swift file.

import HNToaster

Simple Usage

Toast appears in the center of the view.

let message1: String = "Can you see me?"
Toaster.toast(onView: self.view, message: message1)

Options Available

You can set position and area of the toast by frame parameter.
And also the font’s style and size are settable by font parameter.

let message2: String = """
You can arrange
the toast's frame
and the message's font.
"""

let toastFrame: CGRect = CGRect(x: 10, y: self.view.bounds.height - 150, width: self.view.bounds.width - 20, height: 120)

let messageFont: UIFont = UIFont.italicSystemFont(ofSize: 32)

Toaster.toast(onView: self.view, message: message2, frame: toastFrame, font: messageFont)

Author

hahnah, https://superhahnah.com/

License

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

Latest podspec

{
    "name": "HNToaster",
    "version": "1.0.0",
    "summary": "Toast notification for iOS.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/hahnah/HNToaster",
    "screenshots": "https://raw.githubusercontent.com/hahnah/HNToaster/1.0.0/screenshot.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "hahnah": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hahnah/HNToaster.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/superhahnah",
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.0",
    "source_files": "HNToaster/Classes/**/*"
}

Pin It on Pinterest

Share This