mirror of
https://github.com/laosb/TypedAppStorage.git
synced 2025-06-23 17:51:08 +00:00
fix: add Sendable
requirement to TypedAppStorageValue
This commit is contained in:
parent
4c932cb336
commit
27d4026050
1 changed files with 1 additions and 1 deletions
|
@ -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``.
|
||||
|
|
Loading…
Add table
Reference in a new issue