diff --git a/Classes/PinView.swift b/Classes/PinView.swift index bc2a427..149e0d9 100644 --- a/Classes/PinView.swift +++ b/Classes/PinView.swift @@ -164,6 +164,11 @@ public final class PinView: UIView { updateKeypadLettersVisible() } } + + /** + The boolean value specifying whether or not the default pin view loading indicator will be shown or not + */ + @IBInspectable public var hideDefaultLoadingIndicator: Bool = false /** The color that controls the color of the pin bubbles @@ -515,11 +520,15 @@ private extension PinView { func showLoading() { titleLabel.isHidden = true - loadingIndicator.isHidden = false + if !hideDefaultLoadingIndicator { + loadingIndicator.isHidden = false + } } func hideLoading() { - loadingIndicator.isHidden = true + if !hideDefaultLoadingIndicator { + loadingIndicator.isHidden = true + } titleLabel.isHidden = false } diff --git a/GKPinView.podspec b/GKPinView.podspec index 3256fb0..bd37ac2 100644 --- a/GKPinView.podspec +++ b/GKPinView.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'GKPinView' - s.version = '0.9.11' + s.version = '0.9.12' s.summary = 'A lock screen Pin/Passcode View for iPhone and iPad.' s.description = <<-DESC * A customisable Pin/Passcode View for iPhone or iPad