Skip to content

Commit 7c48267

Browse files
committed
fix: Bar buttons text color for iOS 26
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
1 parent 4635e4d commit 7c48267

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

NextcloudTalk/BarButtonItemWithActivity.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ class BarButtonItemWithActivity: UIBarButtonItem {
1010
var innerButton = UIButton()
1111
var activityIndicator = UIActivityIndicatorView()
1212

13-
lazy var textColor: UIColor = NCAppBranding.themeTextColor()
13+
var textColor: UIColor {
14+
if #available(iOS 26.0, *) {
15+
return .label
16+
} else {
17+
return NCAppBranding.themeTextColor()
18+
}
19+
}
1420

1521
init(image: UIImage) {
1622
super.init()

0 commit comments

Comments
 (0)