Notice 1.1.0

Notice 1.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Meniny.



Notice 1.1.0

  • By
  • Elias Abel

Notice-in-Swift

Notice is a delightful notice view for iOS platform.

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()
}