summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBug Magnet <marco.nikic@mullvad.net>2023-07-12 08:59:06 +0200
committerEmīls <emils@mullvad.net>2023-07-12 11:09:16 +0200
commit3cd00d09e8db96dcaa9a33185326782fafb77f10 (patch)
tree99d6faa07660617cb6a593104e6f53fafc1ddb02
parentc98b63e77f202590f1aceee9209e1f09b0ffba55 (diff)
downloadmullvadvpn-3cd00d09e8db96dcaa9a33185326782fafb77f10.tar.xz
mullvadvpn-3cd00d09e8db96dcaa9a33185326782fafb77f10.zip
Use lowercase named enums, fix comments
-rw-r--r--ios/MullvadVPN/UI appearance/UIMetrics.swift2
-rw-r--r--ios/MullvadVPN/View controllers/CreationAccount/Completed/SetupAccountCompletedContentView.swift10
2 files changed, 6 insertions, 6 deletions
diff --git a/ios/MullvadVPN/UI appearance/UIMetrics.swift b/ios/MullvadVPN/UI appearance/UIMetrics.swift
index a75a67ee88..5eedb5b20b 100644
--- a/ios/MullvadVPN/UI appearance/UIMetrics.swift
+++ b/ios/MullvadVPN/UI appearance/UIMetrics.swift
@@ -112,7 +112,7 @@ extension UIMetrics {
/// Height of brand name. Width is automatically produced based on aspect ratio.
static let headerBarBrandNameHeight: CGFloat = 18
- /// padding
+ /// Various paddings used throughout the app to visually separate elements in StackViews
static let padding8: CGFloat = 8
static let padding16: CGFloat = 16
static let padding24: CGFloat = 24
diff --git a/ios/MullvadVPN/View controllers/CreationAccount/Completed/SetupAccountCompletedContentView.swift b/ios/MullvadVPN/View controllers/CreationAccount/Completed/SetupAccountCompletedContentView.swift
index 510fd289bd..5b83cfffb4 100644
--- a/ios/MullvadVPN/View controllers/CreationAccount/Completed/SetupAccountCompletedContentView.swift
+++ b/ios/MullvadVPN/View controllers/CreationAccount/Completed/SetupAccountCompletedContentView.swift
@@ -15,7 +15,7 @@ protocol SetupAccountCompletedContentViewDelegate: AnyObject {
class SetupAccountCompletedContentView: UIView {
private enum Action: String {
- case LearnAboutPrivacy, StartUsingTheApp
+ case learnAboutPrivacy, startUsingTheApp
}
private let titleLabel: UILabel = {
@@ -57,7 +57,7 @@ class SetupAccountCompletedContentView: UIView {
private let privacyButton: AppButton = {
let button = AppButton(style: .success)
- button.accessibilityIdentifier = Action.LearnAboutPrivacy.rawValue
+ button.accessibilityIdentifier = Action.learnAboutPrivacy.rawValue
let localizedString = NSLocalizedString(
"LEARN_ABOUT_PRIVACY_BUTTON",
tableName: "CreatedAccountConfirmation",
@@ -71,7 +71,7 @@ class SetupAccountCompletedContentView: UIView {
private let startButton: AppButton = {
let button = AppButton(style: .success)
- button.accessibilityIdentifier = Action.StartUsingTheApp.rawValue
+ button.accessibilityIdentifier = Action.startUsingTheApp.rawValue
button.setTitle(NSLocalizedString(
"START_USING_THE_APP_BUTTON",
tableName: "CreatedAccountConfirmation",
@@ -143,9 +143,9 @@ class SetupAccountCompletedContentView: UIView {
@objc private func tapped(button: AppButton) {
switch button.accessibilityIdentifier {
- case Action.LearnAboutPrivacy.rawValue:
+ case Action.learnAboutPrivacy.rawValue:
delegate?.didTapPrivacyButton(view: self, button: button)
- case Action.StartUsingTheApp.rawValue:
+ case Action.startUsingTheApp.rawValue:
delegate?.didTapStartingAppButton(view: self, button: button)
default: return
}