This repository was archived by the owner on Feb 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
WordPressAuthenticator/NUX Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 11Pod ::Spec . new do |s |
22 s . name = "WordPressAuthenticator"
3- s . version = "1.10.0-beta.3 "
3+ s . version = "1.10.0-beta.4 "
44 s . summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."
55
66 s . description = <<-DESC
Original file line number Diff line number Diff line change @@ -8,8 +8,21 @@ 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 = {
12- let indicator = UIActivityIndicatorView ( style: . white)
20+ let indicator : UIActivityIndicatorView
21+ if #available( iOS 13 , * ) {
22+ indicator = UIActivityIndicatorView ( style: . medium)
23+ } else {
24+ indicator = UIActivityIndicatorView ( style: . white)
25+ }
1326 indicator. color = WordPressAuthenticator . shared. style. primaryTitleColor
1427 indicator. hidesWhenStopped = true
1528 return indicator
@@ -69,7 +82,10 @@ import WordPressUI
6982 open override func awakeFromNib( ) {
7083 super. awakeFromNib ( )
7184 configureAppearance ( )
72- activityIndicator. style = . gray
85+ guard #available( iOS 13 , * ) else {
86+ activityIndicator. style = . gray
87+ return
88+ }
7389 }
7490
7591 /// Setup: shorter reference for style
You can’t perform that action at this time.
0 commit comments