summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/Classes/ConsolidatedApplicationLog.swift6
-rw-r--r--ios/MullvadVPN/Coordinators/App/ApplicationRouter.swift8
-rw-r--r--ios/MullvadVPN/Notifications/NotificationProviderProtocol.swift2
-rw-r--r--ios/MullvadVPN/View controllers/Login/LoginViewController.swift2
-rw-r--r--ios/MullvadVPN/View controllers/Preferences/PreferencesViewModel.swift2
-rw-r--r--ios/PacketTunnel/TunnelMonitor/Pinger.swift2
-rwxr-xr-xios/convert-assets.rb6
7 files changed, 14 insertions, 14 deletions
diff --git a/ios/MullvadVPN/Classes/ConsolidatedApplicationLog.swift b/ios/MullvadVPN/Classes/ConsolidatedApplicationLog.swift
index ad5f53eda0..f04164f9cd 100644
--- a/ios/MullvadVPN/Classes/ConsolidatedApplicationLog.swift
+++ b/ios/MullvadVPN/Classes/ConsolidatedApplicationLog.swift
@@ -9,7 +9,7 @@
import Foundation
private let kLogMaxReadBytes: UInt64 = 128 * 1024
-private let kLogDelimeter = "===================="
+private let kLogDelimiter = "===================="
private let kRedactedPlaceholder = "[REDACTED]"
private let kRedactedAccountPlaceholder = "[REDACTED ACCOUNT NUMBER]"
private let kRedactedContainerPlaceholder = "[REDACTED CONTAINER PATH]"
@@ -81,9 +81,9 @@ class ConsolidatedApplicationLog: TextOutputStreamable {
print("", to: &stream)
for attachment in logs {
- print(kLogDelimeter, to: &stream)
+ print(kLogDelimiter, to: &stream)
print(attachment.label, to: &stream)
- print(kLogDelimeter, to: &stream)
+ print(kLogDelimiter, to: &stream)
print(attachment.content, to: &stream)
print("", to: &stream)
}
diff --git a/ios/MullvadVPN/Coordinators/App/ApplicationRouter.swift b/ios/MullvadVPN/Coordinators/App/ApplicationRouter.swift
index b407e3127a..8b52b21044 100644
--- a/ios/MullvadVPN/Coordinators/App/ApplicationRouter.swift
+++ b/ios/MullvadVPN/Coordinators/App/ApplicationRouter.swift
@@ -26,7 +26,7 @@ enum AppRouteGroup: Comparable, Equatable, Hashable {
case selectLocation
/**
- Setings group.
+ Settings group.
*/
case settings
@@ -124,7 +124,7 @@ struct PendingRoute: Equatable {
}
/**
- Enum type describing an attempt to fullfill the route presentation request.
+ Enum type describing an attempt to fulfill the route presentation request.
**/
enum PendingPresentationResult {
/**
@@ -174,7 +174,7 @@ enum PendingDismissalResult {
}
/**
- Enum descibing operation over the route.
+ Enum describing operation over the route.
*/
enum RouteOperation: Equatable {
/**
@@ -384,7 +384,7 @@ final class ApplicationRouter {
completion: @escaping (PendingPresentationResult) -> Void
) {
/**
- Pass sub-route for routes suppporting sub-navigation.
+ Pass sub-route for routes supporting sub-navigation.
*/
if route.supportsSubNavigation, modalStack.contains(route.routeGroup),
var presentedRoute = presentedRoutes[route.routeGroup]?.first
diff --git a/ios/MullvadVPN/Notifications/NotificationProviderProtocol.swift b/ios/MullvadVPN/Notifications/NotificationProviderProtocol.swift
index ee512e3961..76d92ff9c2 100644
--- a/ios/MullvadVPN/Notifications/NotificationProviderProtocol.swift
+++ b/ios/MullvadVPN/Notifications/NotificationProviderProtocol.swift
@@ -14,6 +14,6 @@ protocol NotificationProviderProtocol {
/// produced by them.
var identifier: String { get }
- /// Tell notifcation manager to update the associated notification.
+ /// Tell notification manager to update the associated notification.
func invalidate()
}
diff --git a/ios/MullvadVPN/View controllers/Login/LoginViewController.swift b/ios/MullvadVPN/View controllers/Login/LoginViewController.swift
index c18dfe2a97..e2770f65bf 100644
--- a/ios/MullvadVPN/View controllers/Login/LoginViewController.swift
+++ b/ios/MullvadVPN/View controllers/Login/LoginViewController.swift
@@ -301,7 +301,7 @@ class LoginViewController: UIViewController, RootContainment {
case .failure, .default:
// Disable "Create account" button on iPad as user types in the account token,
// however leave it enabled on iPhone to avoid confusion to why it's being disabled
- // since it's likely overlayed by keyboard.
+ // since it's likely overlaid by keyboard.
if case .pad = traitCollection.userInterfaceIdiom {
isEnabled = contentView.accountInputGroup.textField.text?.isEmpty ?? true
} else {
diff --git a/ios/MullvadVPN/View controllers/Preferences/PreferencesViewModel.swift b/ios/MullvadVPN/View controllers/Preferences/PreferencesViewModel.swift
index 328b809d50..09fd6bf64f 100644
--- a/ios/MullvadVPN/View controllers/Preferences/PreferencesViewModel.swift
+++ b/ios/MullvadVPN/View controllers/Preferences/PreferencesViewModel.swift
@@ -184,7 +184,7 @@ struct PreferencesViewModel: Equatable {
/// Sanitize custom DNS entries.
mutating func sanitizeCustomDNSEntries() {
- // Santize DNS domains, drop invalid entries.
+ // Sanitize DNS domains, drop invalid entries.
customDNSDomains = customDNSDomains.compactMap { entry in
if let canonicalAddress = AnyIPAddress(entry.address) {
var newEntry = entry
diff --git a/ios/PacketTunnel/TunnelMonitor/Pinger.swift b/ios/PacketTunnel/TunnelMonitor/Pinger.swift
index 65d5bd9458..7588ae1a50 100644
--- a/ios/PacketTunnel/TunnelMonitor/Pinger.swift
+++ b/ios/PacketTunnel/TunnelMonitor/Pinger.swift
@@ -267,7 +267,7 @@ final class Pinger {
throw Error.malformedResponse(.checksumMismatch(clientChecksum, serverChecksum))
}
- // Ensure endianess before returning ICMP packet to delegate.
+ // Ensure endianness before returning ICMP packet to delegate.
var icmpHeader = icmpHeaderPointer.pointee
icmpHeader.identifier = icmpHeader.identifier.bigEndian
icmpHeader.sequenceNumber = icmpHeader.sequenceNumber.bigEndian
diff --git a/ios/convert-assets.rb b/ios/convert-assets.rb
index e863f79eef..669b23fc42 100755
--- a/ios/convert-assets.rb
+++ b/ios/convert-assets.rb
@@ -59,7 +59,7 @@ ADDITIONAL_ASSETS = [
"IconBackTransitionMask.svg"
]
-# SVG convertion tool environment variables.
+# SVG conversion tool environment variables.
SVG_CONVERT_ENVIRONMENT_VARIABLES = {
# Fix PDF "CreationDate" for reproducible output
"SOURCE_DATE_EPOCH" => "1596022781"
@@ -105,7 +105,7 @@ def generate_resized_assets()
end
end
-def genereate_app_icon()
+def generate_app_icon()
image_name = File.basename(XCASSETS_APPICON_PATH, ".png")
puts "Generate #{image_name} -> #{XCASSETS_APPICON_PATH}"
system("rsvg-convert", "--width=#{XCASSETS_APPICON_SIZE}", "--height=#{XCASSETS_APPICON_SIZE}", "--format=png", APPICON_PATH, "--output", XCASSETS_APPICON_PATH)
@@ -156,7 +156,7 @@ OptionParser.new do |opts|
opts.banner = "Usage: convert-assets.rb [options]"
opts.on("--app-icon", "Generate application icon assets") do |v|
- genereate_app_icon
+ generate_app_icon
end
opts.on("--import-desktop-assets", "Import assets from the desktop app") do |v|