Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WordPressAuthenticator.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Pod::Spec.new do |s|
s.name = 'WordPressAuthenticator'
s.version = '1.42.0'
s.version = '1.42.1-beta.1'

s.summary = 'WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps.'
s.description = <<-DESC
Expand Down
15 changes: 15 additions & 0 deletions WordPressAuthenticator/NUX/NUXButtonViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,21 @@ open class NUXButtonViewController: UIViewController {
shadowView?.isHidden = true
}

public func setTopButtonState(isLoading: Bool, isEnabled: Bool) {
topButton?.showActivityIndicator(isLoading)
topButton?.isEnabled = isEnabled
}

public func setBottomButtonState(isLoading: Bool, isEnabled: Bool) {
bottomButton?.showActivityIndicator(isLoading)
bottomButton?.isEnabled = isEnabled
}

public func setTertiaryButtonState(isLoading: Bool, isEnabled: Bool) {
tertiaryButton?.showActivityIndicator(isLoading)
tertiaryButton?.isEnabled = isEnabled
}

// MARK: - Helpers

private func buttonConfigFor(socialService: SocialServiceName, onTap callback: @escaping CallBackType) -> NUXButtonConfig {
Expand Down