mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
✨ :: Add shortcut to check whether the loading bar is currently visible or not
This commit is contained in:
@@ -87,8 +87,7 @@ final class AdvancedExampleViewController: UIViewController {
|
||||
}
|
||||
|
||||
@IBAction private func toggleCustomColorsButtonTouchUpInside(_: Any) {
|
||||
// TODO: Add `isHidden` shortcut
|
||||
if customColorsGradientLoadingBar.gradientActivityIndicatorView.isHidden {
|
||||
if customColorsGradientLoadingBar.isHidden {
|
||||
customColorsGradientLoadingBar.fadeIn()
|
||||
} else {
|
||||
customColorsGradientLoadingBar.fadeOut()
|
||||
|
||||
Reference in New Issue
Block a user