Post

Replies

Boosts

Views

Activity

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() }
Jul ’24
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.
Dec ’23
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.
Aug ’23