I'm building a document-based app in SwiftUI.
I see you can have a document that is a value type using FileDocument or a document that is a reference type using ReferenceFileDocument.
There is no discussion in the documentation or in the WWDC session as to when you should use one instead of the other. From the WWDC session, it seems that FileDocument is the preferred approach.
What are the use cases / conditions when it would make more sense to use a ReferenceFileDocument?
What are the drawbacks of FileDocument that ReferenceFileDocument addresses?
Thank you for any insights on this.
I see you can have a document that is a value type using FileDocument or a document that is a reference type using ReferenceFileDocument.
There is no discussion in the documentation or in the WWDC session as to when you should use one instead of the other. From the WWDC session, it seems that FileDocument is the preferred approach.
What are the use cases / conditions when it would make more sense to use a ReferenceFileDocument?
What are the drawbacks of FileDocument that ReferenceFileDocument addresses?
Thank you for any insights on this.