I want to save some configure information for my app. Which technology should be used to save configuration information? SwiftData or a json file? I'm not sure whether it's appropriate to use SwiftData.It seems that SwiftData is suitable for saving multiple data of the same type, such as saving multiple student information.
If I use SwiftData to save a configuration information, there may be the following code in the place where it is used:
@query private var configs:[ConfigInfo]
…
name = configs[0].name
If there are other ways to implement it, please let me know. Thanks.