Post

Replies

Boosts

Views

Activity

Reply to acceleration structure doesn't render in gpu trace
@Graphics and Games Engineer I'm using this for my payload for both intersection functions: typedef struct { vector_float3 normal; vector_float3 color; } IntersectionPayload; (sorry I can't seem to get the code block to render correctly). It just returns the surface normal and color from the intersection function. I think that's a trivial usage.
Topic: Graphics & Games SubTopic: General Tags:
Aug ’23
Reply to UIKit Document App -- adding a toolbar
Ok seems I have to change presentDocument to: func presentDocument(at documentURL: URL) { let navVC = UINavigationController() let doc = Document(fileURL: documentURL) let docVC = UIDocumentViewController(document: doc) navVC.modalPresentationStyle = .fullScreen navVC.addChild(docVC) present(navVC, animated: true, completion: nil) } So embed the UIDocumentViewController inside a UINavigationController.
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’23
Reply to Picker with icon button
Well this works, even though it seems odd to stick the picker inside the menu. Menu { Picker("Sleep Timer", selection: $sleepTimerDuration) { Text("Off").tag(0) Text("5 Minutes").tag(5) Text("10 Minutes").tag(10) Text("15 Minutes").tag(15) Text("30 Minutes").tag(30) Text("45 Minutes").tag(45) Text("1 Hour").tag(60) } } label: { Image(systemName: "moon.zzz.fill") .resizable() .tint(.white) .frame(width: 34, height: 34) .padding() }
Topic: UI Frameworks SubTopic: SwiftUI
Jul ’24
Reply to acceleration structure doesn't render in gpu trace
@Graphics and Games Engineer I'm using this for my payload for both intersection functions: typedef struct { vector_float3 normal; vector_float3 color; } IntersectionPayload; (sorry I can't seem to get the code block to render correctly). It just returns the surface normal and color from the intersection function. I think that's a trivial usage.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to acceleration structure doesn't render in gpu trace
Feedback is FB12834920. Thanks!
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to acceleration structure doesn't render in gpu trace
Sorry, I don't have a sample project.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to macOS app rejected for Thumbnail extension continuing to run
DTS confirmed that the rejection was an error.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to FileDocument.fileWrapper not actually called on background thread
@julia_brockovich iOS. Seems to do the right thing on macOS (I just created a test project)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to FileDocument.fileWrapper not actually called on background thread
@julia_brockovich FB13439586
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to UIKit Document App -- adding a toolbar
I found the sample code for the WWDC video (https://developer.apple.com/documentation/uikit/app_and_environment/supporting_desktop-class_features_in_your_ipad_app), but having trouble figuring out which part actually creates the toolbar.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to UIKit Document App -- adding a toolbar
Ok seems I have to change presentDocument to: func presentDocument(at documentURL: URL) { let navVC = UINavigationController() let doc = Document(fileURL: documentURL) let docVC = UIDocumentViewController(document: doc) navVC.modalPresentationStyle = .fullScreen navVC.addChild(docVC) present(navVC, animated: true, completion: nil) } So embed the UIDocumentViewController inside a UINavigationController.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Picker with icon button
Well this works, even though it seems odd to stick the picker inside the menu. Menu { Picker("Sleep Timer", selection: $sleepTimerDuration) { Text("Off").tag(0) Text("5 Minutes").tag(5) Text("10 Minutes").tag(10) Text("15 Minutes").tag(15) Text("30 Minutes").tag(30) Text("45 Minutes").tag(45) Text("1 Hour").tag(60) } } label: { Image(systemName: "moon.zzz.fill") .resizable() .tint(.white) .frame(width: 34, height: 34) .padding() }
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jul ’24
Reply to Xcode 16 Beta Swift Compiler Settings Missing
Hitting this too and wondering how much longer Apple is going to subject us to this awful project file stuff. For heaven sake, adopt a declarative syntax like SPM. One that we can actually use with git effectively.
Replies
Boosts
Views
Activity
Sep ’24
Reply to Xcode 16 Doesn't Display "Swift Compiler" Build Settings Sections
Same issue here. My project has only one file under Compile Sources and it's a Swift file. The rest of the files are in a Swift Package. Settings like "SWIFT_COMPILATION_MODE" are dumped under User Defined. Boggles the mind how Xcode can be this bad. Crazy.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Swift Package with Metal
Here we are in 2025 and Metal inside Swift Packages still doesn't work well. Wheeee!
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Duplicate toolbar item and wrong document name in SwiftUI document based app
This has been broken in various ways for several versions of iOS/iPadOS now. All trivially reproducible in the sample app. I've filed several feedbacks. Because of the breakage, I've created an alternative file browser in SwiftUI: https://github.com/audulus/FileBrowser. I hope that helps others.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25