//
//  ViewController.swift
//  BPStatusBarAlert
//
//  Created by taehyun.park on 01/25/2017.
//  Copyright (c) 2017 taehyun.park. All rights reserved.
//

import UIKit
import BPStatusBarAlert

class ViewController: UIViewController {

    override func viewDidLoad() {        
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

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

    @IBAction func buttonTapped(_ sender: Any) {
        BPStatusBarAlert(duration: 0.3, delay: 2, position: .statusBar)
            .message(message: "Complete Sharing This Contents")
            .messageColor(color: UIColor.white)
            .bgColor(color: UIColor.blue)
            .completion { print("completion closure will called") }
            .show()
    }
}


//
//  ViewController.swift
//  BPStatusBarAlert
//
//  Created by taehyun.park on 01/25/2017.
//  Copyright (c) 2017 taehyun.park. All rights reserved.
//

import UIKit
import BPStatusBarAlert

class ViewController: UIViewController {

    override func viewDidLoad() {        
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

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

    @IBAction func buttonTapped(_ sender: Any) {
        BPStatusBarAlert(duration: 0.3, delay: 2, position: .statusBar)
            .message(message: "Complete Sharing This Contents")
            .messageColor(color: .white)
            .bgColor(color: .blue)
            .completion { print("completion closure will called") }
            .show()
    }
}


Update parameter value using swift type inference
Update parameter value using swift type inference
