最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

swift - Multiple SwiftData containers based on user account - Stack Overflow

programmeradmin1浏览0评论

I'm working on an app where I'm building a CRM system that uses SwiftData to store invoices and contacts. The app also supports multiple saved accounts, each with its own set of invoice and contact data.

I'm wondering—how can I make sure that when users switch between accounts, the app doesn't accidentally load invoices or contacts from another account? Additionally, when a user logs in, I want to avoid resetting the storage so their data stays intact.

Thanks so much for any advice!

Best, Matthijs

发布评论

评论列表(0)

  1. 暂无评论