he0eh / Toast-Swift

Toast view using swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

he_eh 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.

About

Toast view using swift.

License:MIT License


Languages

Language:Swift 98.8%Language:Ruby 1.2%