Skip to content

Commit a0726c1

Browse files
committed
Set button title color using the correct method
Fixes #211
1 parent 1e6d194 commit a0726c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authenticator/Source/ButtonHeaderView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ButtonHeaderView<Action>: UIButton {
5757

5858
private func configureSubviews() {
5959
titleLabel?.textAlignment = .center
60-
titleLabel?.textColor = UIColor.otpForegroundColor
60+
setTitleColor(.otpForegroundColor, for: UIControlState.normal)
6161
titleLabel?.font = UIFont.systemFont(ofSize: 16, weight: UIFontWeightLight)
6262

6363
addTarget(self, action: #selector(ButtonHeaderView.buttonWasPressed), for: .touchUpInside)

0 commit comments

Comments
 (0)