summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Containers
diff options
context:
space:
mode:
authorBug Magnet <marco.nikic@mullvad.net>2024-12-10 09:21:07 +0100
committerBug Magnet <marco.nikic@mullvad.net>2024-12-10 09:21:07 +0100
commit534866bbd8ff9657a8ac89ed77dcb23cbe8b6d65 (patch)
tree6210824bc9bf034040a5cc5e02ac7bbd526650f6 /ios/MullvadVPN/Containers
parent3232f1bb22e498b8f2bc83861b3b3b1dcb9285f4 (diff)
parentbdf7473860342e53092bea0414da5aa96ea1a128 (diff)
downloadmullvadvpn-534866bbd8ff9657a8ac89ed77dcb23cbe8b6d65.tar.xz
mullvadvpn-534866bbd8ff9657a8ac89ed77dcb23cbe8b6d65.zip
Merge branch 'IOS-962-AccessibilityIdentifier-refactor'
Diffstat (limited to 'ios/MullvadVPN/Containers')
-rw-r--r--ios/MullvadVPN/Containers/Root/HeaderBarView.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/ios/MullvadVPN/Containers/Root/HeaderBarView.swift b/ios/MullvadVPN/Containers/Root/HeaderBarView.swift
index 476ec47eb5..5acf94f738 100644
--- a/ios/MullvadVPN/Containers/Root/HeaderBarView.swift
+++ b/ios/MullvadVPN/Containers/Root/HeaderBarView.swift
@@ -33,7 +33,7 @@ class HeaderBarView: UIView {
label.font = UIFont.systemFont(ofSize: 14)
label.textColor = UIColor(white: 1.0, alpha: 0.8)
label.setContentHuggingPriority(.defaultHigh, for: .horizontal)
- label.accessibilityIdentifier = .headerDeviceNameLabel
+ label.setAccessibilityIdentifier(.headerDeviceNameLabel)
return label
}()
@@ -58,7 +58,7 @@ class HeaderBarView: UIView {
let accountButton: UIButton = {
let button = makeHeaderBarButton(with: UIImage(named: "IconAccount"))
- button.accessibilityIdentifier = .accountButton
+ button.setAccessibilityIdentifier(.accountButton)
button.accessibilityLabel = NSLocalizedString(
"HEADER_BAR_ACCOUNT_BUTTON_ACCESSIBILITY_LABEL",
tableName: "HeaderBar",
@@ -72,7 +72,7 @@ class HeaderBarView: UIView {
let settingsButton: UIButton = {
let button = makeHeaderBarButton(with: UIImage(named: "IconSettings"))
- button.accessibilityIdentifier = .settingsButton
+ button.setAccessibilityIdentifier(.settingsButton)
button.accessibilityLabel = NSLocalizedString(
"HEADER_BAR_SETTINGS_BUTTON_ACCESSIBILITY_LABEL",
tableName: "HeaderBar",
@@ -170,7 +170,7 @@ class HeaderBarView: UIView {
)
accessibilityContainerType = .semanticGroup
- accessibilityIdentifier = .headerBarView
+ setAccessibilityIdentifier(.headerBarView)
let brandImageSize = brandNameImage?.size ?? .zero
let brandNameAspectRatio = brandImageSize.width / max(brandImageSize.height, 1)