Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
52 views

I'm building a document-based SwiftUI app following Apple's Building a Document-Based App with SwiftUI guide. The app uses DocumentGroup and stores documents in iCloud Drive. Important context: We're ...
Viktor Maric's user avatar
0 votes
1 answer
62 views

I'm experiencing an issue with a SwiftUI document-based app where document files are not appearing in the "Recents" tab or anywhere in the Files app when created from the "Recents" ...
Viktor Maric's user avatar
0 votes
1 answer
118 views

Let me update the Stack Overflow question to include this additional information: SwiftUI DocumentGroup toolbar items disappear when renaming document or randomly I'm experiencing an issue with ...
Viktor Maric's user avatar
5 votes
0 answers
88 views

I'm developing a document-based app using SwiftUI's DocumentGroupLaunchScene and DocumentGroup, following Apple's official tutorial: Building a Document-Based App with SwiftUI: https://developer.apple....
Viktor Maric's user avatar
1 vote
1 answer
97 views

I'm trying to create a Document-Based App, where each new Document has an own instance of Session(), which should not be stored with the document data though: DocumentGroup(newDocument: DocumentData())...
JacquesNorris's user avatar
1 vote
1 answer
1k views

I am trying to use a @Stateobject in my document as source of truth for the dataModel behind the document. However, it seems I am doing something wrong as I appear to get different instances for the ...
nonresidentalien's user avatar
2 votes
0 answers
367 views

I created a document based app with SwiftUI and a PKCanvasView. Now I want to save the drawings of the PKCanvasView inside of the file. How can I do this?
tillus's user avatar
  • 126
2 votes
1 answer
509 views

I am learning about how to build a document-based app in iOS. I followed Apple's official example (https://developer.apple.com/documentation/uikit/view_controllers/building_a_document_browser-...
user8460166's user avatar
3 votes
2 answers
767 views

I have an macOS xcode swiftui document-based app. I can see that if I, "view->show tab bar" in the app, I get multiple tabs for free. However, if I do a "file open ...", it ...
altimes's user avatar
  • 470
10 votes
1 answer
3k views

The current version of Xcode (version 12.5.1) provides a template for a Document Based App for macOS providing the following document model: struct MyDocument: FileDocument { var text: String ...
user avatar
7 votes
0 answers
411 views

Is there anyway at all, to show an onboarding screen at the launch of a SwiftUI document-based app, before the file picker screen appears? What I can do now, is to show the onboarding screen AFTER ...
Sami Almalki's user avatar
0 votes
1 answer
78 views

On launching my app from Xcode, my document-based app automatically apparently tries to load a cached document from a previous launch. That document appears to be corrupted as the app crashes in ...
Carl Carlson's user avatar
4 votes
0 answers
1k views

I've been using the new template for a document-based SwiftUI app. While you get a lot of file-management "for free" in the new template, as it stands in the iOS version users have to back ...
Steven Hovater's user avatar
0 votes
0 answers
256 views

I have a document-based macOS application, which is a basic text editor. The default behavior is to create a new window for every opened document. But I want to only have one window displayed at a ...
Codey's user avatar
  • 1,233
1 vote
0 answers
422 views

I'm creating a document based app, using swift / SwiftUI and core data for the first time. My approach for CRUDing works - but it doesn't seem to be "right" somehow. Maybe there is a more ...
JacquesNorris's user avatar
1 vote
1 answer
830 views

I’m trying to create a basic Document-Based SwiftUI app. However, the skeleton created by Xcode does not have any linkage between the document and the content view. Here is what I have inferred to be ...
sfiera's user avatar
  • 109
0 votes
1 answer
2k views

I am using Nodejs and MongoDB, mongoose and expressjs, creating a Blog API having users, articles, likes & comments schema. Below are schemas that I use. const UsersSchema = new mongoose....
byal's user avatar
  • 167
1 vote
1 answer
226 views

In a document-based application, any change in a document is signalled by a [self updateChangeCount: NSChangeDone]; At any time, when debugging, the [document isEdited] returns TRUE, as far as the ...
Denis's user avatar
  • 795
0 votes
1 answer
1k views

Apple's documentation is thin on the subject of UIDocumentBrowserViewController-based apps that want to support opening multiple documents simultaneously. I'd like to enable this, so that the user ...
bright's user avatar
  • 4,861
3 votes
1 answer
518 views

I am looking to build a document-based app on macOS using Xcode and targeting macOS High Sierra. Does NSDocument provide document collaboration similar to that of Pages? Apple's Document Based Apps ...
Jake3231's user avatar
  • 723
0 votes
2 answers
106 views

How can I move @attributes to the root of that element when converting XML to JSON in PHP? The simplest way I found to convert my XML file is to json_encode. But I would like to get rid of the @...
Jeremy Dicaire's user avatar
0 votes
1 answer
114 views

In a document-based app, I create files with a custom UTI and extension. I declare both of these in the target's Info>Document Types and Info>Exported UTIs panes, as captured in the image below. I ...
Steven Hovater's user avatar
1 vote
0 answers
106 views

I have a document-based application, and my NSDocument subclass and NSWindow subclass are not being deallocated when I close a window. Any idea how to fix this?
user1007895's user avatar
  • 3,965
1 vote
1 answer
588 views

I started a Document-Based project on XCode for a MacOS project. I realize now that i don't need this functionality and its potentially causing problems and delays in my progress. Is there a way to ...
Jacobo Koenig's user avatar
3 votes
0 answers
783 views

I am creating document based app and I have strange problem - I can't open files which I saved. Each time I receive this error: "The document /name/ could not be opened". Here is output from NSError: ...
Gun13's user avatar
  • 103