I am constructing a document-based app utilizing SwiftUI’s DocumentGroup
with a customized ReferenceFileDocument
. Every thing works properly when paperwork are created within the “On My iPhone” listing â they save routinely, even after renaming.
Nonetheless, once I create a doc inside iCloud Drive (by default it creates in iCloud Drive as iCloud sync is enabled in capabilities), the doc:
â Saves correctly earlier than rename
â Stops saving modifications after renaming the file (By taping the filename on the high of the display screen When doc is open(inline rename UI within the navigation bar)
This challenge solely happens for iCloud Driveâprimarily based paperwork. The identical rename stream works wonderful for domestically saved paperwork.
How am i able to make sure the doc continues saving correctly on this case?