diff options
| author | Bug Magnet <marco.nikic@mullvad.net> | 2024-12-04 14:43:23 +0100 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2025-01-14 10:18:06 +0100 |
| commit | d1cf679456f87b2f93b150c67a76fa20e31d7643 (patch) | |
| tree | 6ae6911848db62013e09939488a54fd98bad81b4 /ios/MullvadVPN/Containers/Root/RootContainerViewController.swift | |
| parent | d2949b4a0b1d3d86a25de1569dc8308c9d7fe237 (diff) | |
| download | mullvadvpn-d1cf679456f87b2f93b150c67a76fa20e31d7643.tar.xz mullvadvpn-d1cf679456f87b2f93b150c67a76fa20e31d7643.zip | |
Enable compilation with Swift 6 for most targets
Diffstat (limited to 'ios/MullvadVPN/Containers/Root/RootContainerViewController.swift')
| -rw-r--r-- | ios/MullvadVPN/Containers/Root/RootContainerViewController.swift | 9 |
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 |
