Post

Replies

Boosts

Views

Activity

Comment on Add addtional document type
Sorry, I misread your question. I thought you wanted to add a new document type when you want to create a new document type property. I can verify that clicking in the "Click here to add additional document type properties" area does nothing in Xcode 13.1. I can add a property if there is an existing document type property, but I can't add the first document type property.
Nov ’21
Comment on Unable to pass down returned value from one view to another
Forget passing the idd. When someone taps the Add button, show a NewNoteView. The NewNoteView would have a button to add a note. When someone taps that button, create a new note and add it to the data manager's notes array. Why are you focusing so much on ids instead of notes? Is it something Firebase requires? You would have an easier time working with notes instead of ids. Please use replies instead of comments in the future. Apple sends notifications to me for replies but not comments.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’22
Comment on Multiple Type in MacOS Document-based App
You're asking for help and not supplying any info for anyone to help you. What are the relevant values for the Document Types, Exported Type Identifiers, and Imported Type Identifiers sections? What are the values for the Imported Type Identifier for the CSS file type that you added? Don't answer in a comment. Answer in a reply because comments are limited to 500 characters, and you're going to need more than 500 characters to provide what people need to help you.
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’22
Comment on Use multiple @Observable inside each other using @Enviroment
If you have only one instance of CategoriesViewModel, create a static property for the instance in the CategoriesViewModel class, such as static let shared = CategoriesViewModel(). Fill the categories array for the static instance, shared in the example. The static instance can be used globally, like @Environment. Pass that property everywhere you need to access the categories.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’23
Comment on Combining SwiftUI & SpriteKit
You named your class MapScene, but your newGameScene function returns type GameScene, and your guard let statement casts to GameScene. Either change the name of the class to GameScene or change newGameScene to return MapScene and cast to MapScene in the guard let statement. Also make sure the class name for the scene in the .sks file matches your class name. In the future use a reply to show code because comments do not support Markdown formatting so the code looks like paragraph text.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23
Comment on Enable access to Documents Directory in Xcode 13
Thanks. I was using a SwiftUI file exporter to export the document. Apparently the file exporter does not implicitly grant the write permission.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on SwiftUI Image does not display image from existing file
How do I trigger the actual data retrieval? That's my original question.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Add addtional document type
Sorry, I misread your question. I thought you wanted to add a new document type when you want to create a new document type property. I can verify that clicking in the "Click here to add additional document type properties" area does nothing in Xcode 13.1. I can add a property if there is an existing document type property, but I can't add the first document type property.
Replies
Boosts
Views
Activity
Nov ’21
Comment on Getting SwiftUI TextEditor's Selection Range
No, I did not find a solution.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Comment on Why can’t I open the app created in swift playground 4 on the iPad in swift playground 4 on the mac?
The Mac version of Swift Playgrounds 4 is a minor update from version 3. It does not currently have the iOS version's support for App projects.
Replies
Boosts
Views
Activity
Dec ’21
Comment on Unable to pass down returned value from one view to another
Forget passing the idd. When someone taps the Add button, show a NewNoteView. The NewNoteView would have a button to add a note. When someone taps that button, create a new note and add it to the data manager's notes array. Why are you focusing so much on ids instead of notes? Is it something Firebase requires? You would have an easier time working with notes instead of ids. Please use replies instead of comments in the future. Apple sends notifications to me for replies but not comments.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on How can i migrate a project from playground to Xcode or Xcode to playground(or, updating it using Xcode/playground)?
What do you mean by bind the project to the app? Be more specific about what you want to do. Please use replies instead of comments. Apple sends email notifications for replies but not comments. I can respond faster if you reply instead of commenting.
Replies
Boosts
Views
Activity
Jun ’22
Comment on TextField with Double or Int not binding back ?
You could give the variable an initial value of nil. I used 0 as an example. I'm not sure how well SwiftUI text fields work with nil values so you might run into problems if you set the variable to nil initially. You will have less pain if you use a Double instead of an optional to store the value.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Multiple Type in MacOS Document-based App
You're asking for help and not supplying any info for anyone to help you. What are the relevant values for the Document Types, Exported Type Identifiers, and Imported Type Identifiers sections? What are the values for the Imported Type Identifier for the CSS file type that you added? Don't answer in a comment. Answer in a reply because comments are limited to 500 characters, and you're going to need more than 500 characters to provide what people need to help you.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on Multipage PDF with PDFKit on macOS with swift
PDFKit is more for working with existing PDF files than creating PDFs from scratch. You can check out the PDFKit framework and see if it can help you. Choose Help > Developer Documentation in Xcode. The PDFKit documentation is in the Graphics and Games section of the documentation.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on xcode 14 and ios 10.3
You can have multiple versions of Xcode installed. If you can't install Xcode 13.4 on Ventura, run macOS 12 in a virtual machine and installed Xcode 13.4 there. Otherwise, just give up on supporting iOS 10.3 and support iOS 11+.
Replies
Boosts
Views
Activity
Mar ’23
Comment on Use multiple @Observable inside each other using @Enviroment
If you have only one instance of CategoriesViewModel, create a static property for the instance in the CategoriesViewModel class, such as static let shared = CategoriesViewModel(). Fill the categories array for the static instance, shared in the example. The static instance can be used globally, like @Environment. Pass that property everywhere you need to access the categories.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Combining SwiftUI & SpriteKit
You named your class MapScene, but your newGameScene function returns type GameScene, and your guard let statement casts to GameScene. Either change the name of the class to GameScene or change newGameScene to return MapScene and cast to MapScene in the guard let statement. Also make sure the class name for the scene in the .sks file matches your class name. In the future use a reply to show code because comments do not support Markdown formatting so the code looks like paragraph text.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Comment on Xcode 14.2 Running Extremely Slow
If you can't add more RAM, using an external SSD is the only thing you can do to improve the Xcode performance. I don't know if it will be enough to make Xcode and the iOS simulator run fast enough for you.
Replies
Boosts
Views
Activity
Dec ’23
Comment on Are changes to published embedded objects really not detected in SwiftUI?
Are you using @StateObject for the user manager in the App struct, which owns the user manager? If not, you should be.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24