-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'export-identifiers-for-accessibility-elements-ios-127'
- Loading branch information
Showing
29 changed files
with
221 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// | ||
// RelayFilter.swift | ||
// MullvadVPN | ||
// | ||
// Created by Jon Petersson on 2023-12-20. | ||
// Copyright © 2023 Mullvad VPN AB. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
public enum AccessibilityIdentifier: String { | ||
// Buttons | ||
case accountButton | ||
case agreeButton | ||
case alertOkButton | ||
case applyButton | ||
case cancelButton | ||
case collapseButton | ||
case deleteButton | ||
case disconnectButton | ||
case infoButton | ||
case learnAboutPrivacyButton | ||
case loginBarButton | ||
case logoutButton | ||
case purchaseButton | ||
case redeemVoucherButton | ||
case selectLocationButton | ||
case settingsButton | ||
case startUsingTheAppButton | ||
|
||
// Cells | ||
case preferencesCell | ||
case versionCell | ||
case problemReportCell | ||
case faqCell | ||
case apiAccessCell | ||
case relayFilterOwnershipCell | ||
case relayFilterProviderCell | ||
|
||
// Other UI elements | ||
case loginTextField | ||
|
||
// DNS settings | ||
case dnsSettings | ||
case wireGuardCustomPort | ||
case wireGuardObfuscationAutomatic | ||
case wireGuardObfuscationOff | ||
case wireGuardObfuscationOn | ||
case wireGuardPort | ||
|
||
// Custom DNS | ||
case blockAdvertising | ||
case blockTracking | ||
case blockMalware | ||
case blockGambling | ||
case blockAdultContent | ||
case blockSocialMedia | ||
case useCustomDNS | ||
case addDNSServer | ||
case dnsServer | ||
case dnsServerInfo | ||
|
||
// Error | ||
case unknown | ||
} | ||
|
||
extension UIAccessibilityIdentification { | ||
var accessibilityIdentifier: AccessibilityIdentifier? { | ||
get { | ||
guard let accessibilityIdentifier else { return nil } | ||
return AccessibilityIdentifier(rawValue: accessibilityIdentifier) | ||
} | ||
set { | ||
accessibilityIdentifier = newValue?.rawValue | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.