//
//  ViewController.swift
//  DotLoadingIndicator
//
//  Created by nguyenkhiem7789@gmail.com on 05/07/2020.
//  Copyright (c) 2020 nguyenkhiem7789@gmail.com. All rights reserved.
//

import UIKit
import DotLoadingIndicator

class ViewController: UIViewController {

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

    @IBAction func clickShowFullScreenButton(_ sender: Any) {
        LoadingView.shared.timeout = 3
        LoadingView.shared.textMessage = "Xin vui lòng chờ dợi orange ..."
        LoadingView.shared.dotColor = UIColor.orange.cgColor
        LoadingView.shared.show()
    }

    @IBAction func clickShowNotFullScreenButton(_ sender: Any) {
        LoadingView.shared.textMessage = "Xin vui lòng chờ dợi red ..."
        LoadingView.shared.dotColor = UIColor.red.cgColor
        LoadingView.shared.show(type: .notFullScreen)
    }

}

