Latest 1.1.0
Homepage https://github.com/Meniny/Notice-in-Swift
License MIT
Platforms ios 8.0
Frameworks Foundation, UIKit

Notice-in-Swift

Notice is a delightful notice view for iOS platform.

Installation with CocoaPods

pod 'Notice'

Usage

override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
    self.showText("Some text here to show")
    self.showSuccess("Yay! Success")
    self.showText("Status Bar Notice", onStatusBar: true)
    self.makeErrorNotice(text: "╮(╯▽╰)╭").show(afterDelay: kNoticeDefaultTimeInterval)
    let loading = self.makeLoadingNotice()
    loading.show(afterDelay: kNoticeDefaultTimeInterval * 2)
    self.perform(#selector(ViewController.hide(_:)), with: loading, afterDelay: kNoticeDefaultTimeInterval * 3)
}

func hide(_ loading: Notice) {
    loading.hide()
}

Latest podspec

{
    "name": "Notice",
    "version": "1.1.0",
    "summary": "A delightful notice view for iOS platform.",
    "description": "A stable version of Notice, a delightful notice view for iOS platform.",
    "homepage": "https://github.com/Meniny/Notice-in-Swift",
    "license": "MIT",
    "authors": "Elias Abel",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Meniny/Notice-in-Swift.git",
        "tag": "1.1.0"
    },
    "source_files": "Notice/**/*.{swift}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This