Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 0337c04

Browse files
committed
Update activity indicator color based when is enabled changes
1 parent f9b50ae commit 0337c04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

WordPressAuthenticator/NUX/NUXButton.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ import WordPressUI
88
return activityIndicator.isAnimating
99
}
1010

11+
open override var isEnabled: Bool {
12+
didSet {
13+
if #available(iOS 13, *) {
14+
activityIndicator.color = isEnabled ? style.primaryTitleColor : style.secondaryTitleColor
15+
}
16+
}
17+
}
18+
1119
@objc let activityIndicator: UIActivityIndicatorView = {
1220
let indicator: UIActivityIndicatorView
1321
if #available(iOS 13, *) {

0 commit comments

Comments
 (0)