2019-07-31 17:40:39 +08:00
|
|
|
//
|
|
|
|
// ViewController.swift
|
|
|
|
// Example
|
|
|
|
//
|
|
|
|
// Created by xaoxuu on 2018/6/15.
|
|
|
|
// Copyright © 2018 Titan Studio. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
2020-06-15 15:11:44 +08:00
|
|
|
//import ProHUD
|
2019-08-12 17:59:40 +08:00
|
|
|
import SnapKit
|
2019-07-31 17:40:39 +08:00
|
|
|
|
2019-08-12 17:59:40 +08:00
|
|
|
class ViewController: BaseListVC {
|
|
|
|
|
2019-07-31 17:40:39 +08:00
|
|
|
override func viewDidLoad() {
|
|
|
|
super.viewDidLoad()
|
|
|
|
// Do any additional setup after loading the view.
|
2020-06-19 10:48:47 +08:00
|
|
|
title = "\(Bundle.main.infoDictionary?["CFBundleName"] ?? "ProHUD")"
|
2020-06-23 20:16:12 +08:00
|
|
|
|
|
|
|
vm.addSection(title: "") { (sec) in
|
|
|
|
sec.addRow(title: "Toast") {
|
|
|
|
let vc = TestToastVC()
|
|
|
|
vc.title = "Toast"
|
|
|
|
self.navigationController?.pushViewController(vc, animated: true)
|
|
|
|
}
|
|
|
|
sec.addRow(title: "Alert") {
|
|
|
|
let vc = TestAlertVC()
|
|
|
|
vc.title = "Alert"
|
|
|
|
self.navigationController?.pushViewController(vc, animated: true)
|
|
|
|
}
|
|
|
|
sec.addRow(title: "Guard") {
|
|
|
|
let vc = TestGuardVC()
|
|
|
|
vc.title = "Guard"
|
|
|
|
self.navigationController?.pushViewController(vc, animated: true)
|
|
|
|
}
|
2019-08-12 17:59:40 +08:00
|
|
|
}
|
2020-06-23 20:16:12 +08:00
|
|
|
|
2019-08-05 14:20:52 +08:00
|
|
|
}
|
|
|
|
|
2019-07-31 17:40:39 +08:00
|
|
|
}
|
|
|
|
|