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

This commit is contained in:
Felix Mau committed 2022-03-11 15:18:04 +01:00
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()