mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-11-18 21:14:09 +00:00
✨ :: Add shortcut to check whether the loading bar is currently visible or not
This commit is contained in:
1 parent
3e1c18818a
commit
67f6ab75cc
2 files changed
+11
-2
No files matched your search
@@ -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