@Shared Keychain / swift-composable-architecture-keychain #2913
Replies: 2 comments 6 replies
-
One problem I see, is that there is no way to observe the Keychain like you can do with AppStorage/UserDefaults and files. So if the community will implement this, it has to come with the downside of not always up to date state (except if some polling mechanism is implemented, which I am not sure is a good idea)😕. Also I cannot think of a good way, how to specify all of the attributes at the initialization point. Maybe we can collect some ideas here. And one more thing, https://developer.apple.com/documentation/security/1401659-secitemadd#4098451 mentions some performance considerations, like dispatching the |
Beta Was this translation helpful? Give feedback.
-
And I guess the most obvious consideration would be, which data would you allow to be added with the wrapper. Only allow |
Beta Was this translation helpful? Give feedback.
-
I have been exploring the
@Shared
functionality in the Beta, specifically the persistence strategies. I think it would be useful to include the Keychain as one of TCA's supported persistence strategies. Personally, I use a library called KeychainSwift to interact with the Keychain. It greatly simplifies the process of using the Keychain. As previously discussed with @stephencelis, we could create a new package likeswift-shared-keychain
orswift-composable-architecture-keychain
. I would love to help bring this persistence strategy to TCA.Beta Was this translation helpful? Give feedback.
All reactions