From 27d402605028d8d4f14457beca144c82b860454a Mon Sep 17 00:00:00 2001 From: Shibo Lyu Date: Sat, 14 Jun 2025 19:56:19 +0800 Subject: [PATCH] fix: add `Sendable` requirement to `TypedAppStorageValue` --- Sources/TypedAppStorage/TypedAppStorage.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TypedAppStorage/TypedAppStorage.swift b/Sources/TypedAppStorage/TypedAppStorage.swift index 97d241b..2e780f2 100644 --- a/Sources/TypedAppStorage/TypedAppStorage.swift +++ b/Sources/TypedAppStorage/TypedAppStorage.swift @@ -3,7 +3,7 @@ import SwiftUI /// The protocol that typed app storage values must conform to. /// /// The most important requirement is conformance to `Codable`. Use ``TypedAppStorage`` in SwiftUI views to store and fetch conforming data. -public protocol TypedAppStorageValue: Codable { +public protocol TypedAppStorageValue: Codable, Sendable { /// The actual key under which this type of data is stored. static var appStorageKey: String { get } /// The default value to return, if there's no data under the specified ``appStorageKey``.