mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-04-17 12:17:30 +00:00
27 lines
639 B
Swift
27 lines
639 B
Swift
//
|
|
// SafeAreaExampleViewController.swift
|
|
// GradientLoadingBar_Example
|
|
//
|
|
// Created by Felix Mau on 08/30/18.
|
|
// Copyright © 2018 Felix Mau. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
import GradientLoadingBar
|
|
|
|
class SafeAreaExampleViewController: UIViewController {
|
|
// MARK: - Private properties
|
|
|
|
private let safeAreaGradientLoadingBar = GradientLoadingBar(isRelativeToSafeArea: false)
|
|
|
|
// MARK: - Public methods
|
|
|
|
@IBAction func showButtonTouchUpInside(_: Any) {
|
|
safeAreaGradientLoadingBar.fadeIn()
|
|
}
|
|
|
|
@IBAction func hideButtonTouchUpInside(_: Any) {
|
|
safeAreaGradientLoadingBar.fadeOut()
|
|
}
|
|
}
|