diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-07-15 13:53:15 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-07-16 13:42:44 +0200 |
| commit | 902ca9231d75102867c5fd06682fd4296632969b (patch) | |
| tree | 10bbe1c0ec3e2f92513c57070618a9d1470c9890 | |
| parent | 19d3618e8f88bf6d9a392df3a39a33be889d169e (diff) | |
| download | mullvadvpn-902ca9231d75102867c5fd06682fd4296632969b.tar.xz mullvadvpn-902ca9231d75102867c5fd06682fd4296632969b.zip | |
Accessibility: add semantic group
| -rw-r--r-- | ios/MullvadVPN/ConnectMainContentView.swift | 4 | ||||
| -rw-r--r-- | ios/MullvadVPN/HeaderBarView.swift | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ios/MullvadVPN/ConnectMainContentView.swift b/ios/MullvadVPN/ConnectMainContentView.swift index 1ddab593b2..851ddfbad3 100644 --- a/ios/MullvadVPN/ConnectMainContentView.swift +++ b/ios/MullvadVPN/ConnectMainContentView.swift @@ -84,6 +84,10 @@ class ConnectMainContentView: UIView { backgroundColor = .primaryColor layoutMargins = UIMetrics.contentLayoutMargins + if #available(iOS 13.0, *) { + accessibilityContainerType = .semanticGroup + } + addSubviews() } diff --git a/ios/MullvadVPN/HeaderBarView.swift b/ios/MullvadVPN/HeaderBarView.swift index 056bfcbb73..0912e5c107 100644 --- a/ios/MullvadVPN/HeaderBarView.swift +++ b/ios/MullvadVPN/HeaderBarView.swift @@ -63,6 +63,10 @@ class HeaderBarView: UIView { right: UIMetrics.contentLayoutMargins.right ) + if #available(iOS 13.0, *) { + accessibilityContainerType = .semanticGroup + } + let constraints = [ logoImageView.leadingAnchor.constraint(equalTo: layoutMarginsGuide.leadingAnchor), logoImageView.centerYAnchor.constraint(equalTo: titleLabel.centerYAnchor), |
