:: Add shortcut to check whether the loading bar is currently visible or not

This commit is contained in:
Felix Mau
2022-03-11 15:18:04 +01:00
parent 3e1c18818a
commit 67f6ab75cc
2 changed files with 11 additions and 2 deletions
@@ -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()