CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

ADToast 1.0.5

ADToast 1.0.5

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

Maintained by Aniruddha Das.



ADToast 1.0.5

  • By
  • Aniruddha Das

ADToast

Introduction

It displays a message in Toast style, with an Android-like effect.

Requirements Specifications

1. Target OS: iOS

2. Supported OS Versions: iOS 9.0+

3. Written in: Swift

4. Supports: Swift 3.0

5. IDE: Xcode 8

6. Architectures Supported: armv7, armv7s, arm64

7. Supported devices: iPhone 5s, iPhone6 and above, and all iPads

Install Guide

Usage Guide

import UIKit
import ADToast

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        //self.view.makeToast("Hello") //By default, the duration is 3.0 ms and position is bottom
        self.view.makeToast("Hello", duration: 5.0, position: .bottom)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

Parameters:

  • message - a string that you want to display
  • duration - in milliseconds
  • position - top, center or bottom

Output