Fix some isolation errors when compiling with Swift 6.4. (#6148)

* Fix some isolation errors when compiling with Swift 6.4.

* Update the Design Tokens dependency to include Sendable conformances.
This commit is contained in:
Doug
2026-09-10 15:22:53 +01:00
committed by GitHub
parent a150df584d
commit 4608a63e29
11 changed files with 28 additions and 27 deletions
@@ -8,12 +8,12 @@
import Foundation
enum NetworkMonitorReachability {
nonisolated enum NetworkMonitorReachability {
case reachable
case unreachable
}
enum HomeserverReachability {
nonisolated enum HomeserverReachability {
/// The store is open and the homeserver is reachable.
case reachable
/// The homeserver can't be reached even though we're trying to sync (i.e. offline).
@@ -8,7 +8,7 @@
import SwiftUI
struct RoundedCornerShape: Shape {
nonisolated struct RoundedCornerShape: Shape {
let radius: CGFloat
let corners: UIRectCorner
@@ -84,7 +84,7 @@ private struct ViewSizeKey: PreferenceKey {
}
}
private struct WaveformShape: Shape {
private nonisolated struct WaveformShape: Shape {
let lineWidth: CGFloat
let linePadding: CGFloat
let waveformData: [Float]
@@ -159,7 +159,7 @@ nonisolated struct ClientFactory: ClientFactoryProtocol {
private func build(_ builder: ClientBuilder,
for mode: BuildMode,
appHooks: AppHooks) async throws -> ClientProtocol {
var client: ClientProtocol = try await appHooks.clientFactoryHook.configure(builder, toRestore: mode.session).build()
let client: ClientProtocol = try await appHooks.clientFactoryHook.configure(builder, toRestore: mode.session).build()
switch mode {
case .authentication: