AWSary / AWSary-iOS

AWS Dictionary iOS App
13 stars 2 forks source link

Implement simple SwiftData from iOS 17 #112

Closed tigpt closed 1 year ago

tigpt commented 1 year ago

implement simple swift data from iOS 17 as a way to save user settings without using UserDefault that apple is slowly deprecating.

tigpt commented 1 year ago

Looks like SwiftData only works with arrays, as its normal to query CoreData for items.

for singletons its better to use @AppStorage

tigpt commented 1 year ago

implemented in https://github.com/AWSary/AWSary-iOS/commit/88406b5df4390983f4a34c45d23d8c8ece0f4c71