Skip to content

Commit

Permalink
adding the ability to hide the default load
Browse files Browse the repository at this point in the history
  • Loading branch information
gligorkot committed May 16, 2019
1 parent 0fecb4e commit 7a1be09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions Classes/PinView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion GKPinView.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7a1be09

Please sign in to comment.