🚸 :: Updated example application

This commit is contained in:
Felix Mau
2018-09-03 18:43:05 +02:00
parent b4c07042c1
commit 691e1305c5
38 changed files with 1469 additions and 908 deletions
@@ -0,0 +1,38 @@
//
// BasicExampleViewController.swift
// GradientLoadingBar_Example
//
// Created by fxm90 on 09/30/2017.
// Copyright (c) 2017 fxm90. All rights reserved.
//
import UIKit
import GradientLoadingBar
class BasicExampleViewController: UIViewController {
// MARK: - Public methods
@IBAction func showButtonTouchUpInside(_: Any) {
let gradientLoadingBar = GradientLoadingBar.shared
gradientLoadingBar.show()
}
@IBAction func toggleButtonTouchUpInside(_: Any) {
let gradientLoadingBar = GradientLoadingBar.shared
gradientLoadingBar.toggle()
}
@IBAction func hideButtonTouchUpInside(_: Any) {
let gradientLoadingBar = GradientLoadingBar.shared
gradientLoadingBar.hide()
}
}
// MARK: - UIBarPositioningDelegate
// Notice: Delegate is setted-up via storyboard.
extension BasicExampleViewController: UINavigationBarDelegate {
func position(for _: UIBarPositioning) -> UIBarPosition {
return .topAttached
}
}