summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/View controllers/ProblemReport
diff options
context:
space:
mode:
authorJon Petersson <jon.petersson@kvadrat.se>2023-09-04 23:53:38 +0200
committerJon Petersson <jon.petersson@kvadrat.se>2023-09-07 16:46:26 +0200
commit7509670dd5d5cf3082feeb508ea5b3aabf5430cc (patch)
treef8f6cef66111e26a630740732840f361358f3376 /ios/MullvadVPN/View controllers/ProblemReport
parent827a84c9287705e30487f2f53b360e05dc418f54 (diff)
downloadmullvadvpn-7509670dd5d5cf3082feeb508ea5b3aabf5430cc.tar.xz
mullvadvpn-7509670dd5d5cf3082feeb508ea5b3aabf5430cc.zip
Fix or report all current smaller Swiftlint warnings in xcode
Diffstat (limited to 'ios/MullvadVPN/View controllers/ProblemReport')
-rw-r--r--ios/MullvadVPN/View controllers/ProblemReport/ProblemReportInteractor.swift3
-rw-r--r--ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController.swift25
2 files changed, 18 insertions, 10 deletions
diff --git a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportInteractor.swift b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportInteractor.swift
index 28aed41d77..b1bb49ccb2 100644
--- a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportInteractor.swift
+++ b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportInteractor.swift
@@ -17,9 +17,6 @@ final class ProblemReportInteractor {
private lazy var consolidatedLog: ConsolidatedApplicationLog = {
let securityGroupIdentifier = ApplicationConfiguration.securityGroupIdentifier
-
- // TODO: make sure we redact old tokens
-
let redactStrings = [tunnelManager.deviceState.accountData?.number].compactMap { $0 }
let report = ConsolidatedApplicationLog(
diff --git a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController.swift b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController.swift
index 93cfbde3eb..20b29e3364 100644
--- a/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController.swift
+++ b/ios/MullvadVPN/View controllers/ProblemReport/ProblemReportViewController.swift
@@ -43,7 +43,10 @@ final class ProblemReportViewController: UIViewController, UITextFieldDelegate {
textLabel.text = NSLocalizedString(
"SUBHEAD_LABEL",
tableName: "ProblemReport",
- value: "To help you more effectively, your app’s log file will be attached to this message. Your data will remain secure and private, as it is anonymised before being sent over an encrypted channel.",
+ value: """
+ To help you more effectively, your app’s log file will be attached to this message. \
+ Your data will remain secure and private, as it is anonymised before being sent over an encrypted channel.
+ """,
comment: ""
)
return textLabel
@@ -82,7 +85,10 @@ final class ProblemReportViewController: UIViewController, UITextFieldDelegate {
textView.placeholder = NSLocalizedString(
"DESCRIPTION_TEXTVIEW_PLACEHOLDER",
tableName: "ProblemReport",
- value: "To assist you better, please write in English or Swedish and include which country you are connecting from.",
+ value: """
+ To assist you better, please write in English or Swedish and include \
+ which country you are connecting from.
+ """,
comment: ""
)
textView.contentInsetAdjustmentBehavior = .never
@@ -453,14 +459,14 @@ final class ProblemReportViewController: UIViewController, UITextFieldDelegate {
self.messageTextView.roundCorners = false
self.view.layoutIfNeeded()
- }) { _ in
+ }, completion: { _ in
self.isMessageTextViewExpanded = true
self.textViewKeyboardResponder?.updateContentInsets()
// Tell accessibility engine to scan the new layout
UIAccessibility.post(notification: .layoutChanged, argument: nil)
- }
+ })
} else {
// Re-enable the large title
@@ -476,7 +482,7 @@ final class ProblemReportViewController: UIViewController, UITextFieldDelegate {
self.messageTextView.roundCorners = true
self.view.layoutIfNeeded()
- }) { _ in
+ }, completion: { _ in
// Revert the content adjustment behavior
self.messageTextView.contentInsetAdjustmentBehavior = .never
@@ -487,7 +493,7 @@ final class ProblemReportViewController: UIViewController, UITextFieldDelegate {
// Tell accessibility engine to scan the new layout
UIAccessibility.post(notification: .layoutChanged, argument: nil)
- }
+ })
}
}
@@ -504,7 +510,10 @@ final class ProblemReportViewController: UIViewController, UITextFieldDelegate {
let message = NSLocalizedString(
"EMPTY_EMAIL_ALERT_MESSAGE",
tableName: "ProblemReport",
- value: "You are about to send the problem report without a way for us to get back to you. If you want an answer to your report you will have to enter an email address.",
+ value: """
+ You are about to send the problem report without a way for us to get back to you. \
+ If you want an answer to your report you will have to enter an email address.
+ """,
comment: ""
)
@@ -718,4 +727,6 @@ final class ProblemReportViewController: UIViewController, UITextFieldDelegate {
messageTextView.becomeFirstResponder()
return false
}
+
+ // swiftlint:disable:next file_length
}