ToastSwift 0.1.3

ToastSwift 0.1.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2015
SPMSupports SPM

Maintained by CocoaRannie.



  • By
  • Hanran Liu

Toast-Swift

Toast view using swift.

Install

CocoaPods:

pod 'ToastSwift'

Or download this repo.

Usage

  1. Single toast view

      self.view.makeToast(message: msg)
    
  2. Toast with title

      self.view.makeToast(message: msg, duration: duration, position: pos, title: subject)
    
  3. Toast with image, title...

      self.view.makeToast(message: msg, duration: duration, position: pos, title: subject, image: image)
    
  4. Show and hide activity

      self.view.makeToastActivity()
      self.view.hideToastActivity()
    
  5. Show activity with message

    self.view.makeToastActivityWithMessage(message: msg)
    

Screenshots

Type: single and title
First Screenshot Second Screenshot
Type: image and activity
Third Screenshot Fourth Screenshot
Type: activity with message
Fifth Screenshot

LICENSE

Toast-Swift is available under the MIT license. See the LICENSE file for more info.