summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Containers/Root/RootContainerViewController.swift
diff options
context:
space:
mode:
authorBug Magnet <marco.nikic@mullvad.net>2025-01-14 11:49:21 +0100
committerBug Magnet <marco.nikic@mullvad.net>2025-01-14 11:49:21 +0100
commited0b9cd0283e26e216fbb7edf5cd6e5bcf042cde (patch)
tree6fc5be4a68ffde2337d1bc3bb516ff46144a07be /ios/MullvadVPN/Containers/Root/RootContainerViewController.swift
parentd2949b4a0b1d3d86a25de1569dc8308c9d7fe237 (diff)
parente71db0cfc12bd561532b73722983175edab2482c (diff)
downloadmullvadvpn-ed0b9cd0283e26e216fbb7edf5cd6e5bcf042cde.tar.xz
mullvadvpn-ed0b9cd0283e26e216fbb7edf5cd6e5bcf042cde.zip
Merge branch 'fix-warnings-introduced-by-xcode-16-ios-741'
Diffstat (limited to 'ios/MullvadVPN/Containers/Root/RootContainerViewController.swift')
-rw-r--r--ios/MullvadVPN/Containers/Root/RootContainerViewController.swift9
1 files changed, 5 insertions, 4 deletions
diff --git a/ios/MullvadVPN/Containers/Root/RootContainerViewController.swift b/ios/MullvadVPN/Containers/Root/RootContainerViewController.swift
index 2c405395bc..8e3a4c8f5d 100644
--- a/ios/MullvadVPN/Containers/Root/RootContainerViewController.swift
+++ b/ios/MullvadVPN/Containers/Root/RootContainerViewController.swift
@@ -9,7 +9,7 @@
import Routing
import UIKit
-enum HeaderBarStyle {
+enum HeaderBarStyle: Sendable {
case transparent, `default`, unsecured, secured
fileprivate func backgroundColor() -> UIColor {
@@ -26,7 +26,7 @@ enum HeaderBarStyle {
}
}
-struct HeaderBarPresentation {
+struct HeaderBarPresentation: Sendable {
let style: HeaderBarStyle
let showsDivider: Bool
@@ -36,7 +36,8 @@ struct HeaderBarPresentation {
}
/// A protocol that defines the relationship between the root container and its child controllers
-protocol RootContainment {
+@MainActor
+protocol RootContainment: Sendable {
/// Return the preferred header bar style
var preferredHeaderBarPresentation: HeaderBarPresentation { get }
@@ -60,7 +61,7 @@ extension RootContainment {
}
}
-protocol RootContainerViewControllerDelegate: AnyObject {
+protocol RootContainerViewControllerDelegate: AnyObject, Sendable {
func rootContainerViewControllerShouldShowAccount(
_ controller: RootContainerViewController,
animated: Bool