Posts

Post not yet marked as solved
4 Replies
4.2k Views
I created a new macOS document-based app in Xcode Version 11.5 (11E608c), and modified ContentView to look like this: struct ContentView: View { var body: some View { ZStack { Circle() .foregroundColor(.red) .frame(width: 30, height: 30, alignment: .center) Text("Hello, World!") } .frame(maxWidth: .infinity, maxHeight: .infinity) } } I made no other changes other than to enable the print capability. The canvas and app itself look just as you'd expect. When I run File->Print, however, only the window, its frame, and the text show up in the print preview and on the printed page. The circle graphic is missing, even though the appropriate light/dark mode background is there. Is this a bug, or is there something else required to enable graphics to print from SwiftUI?
Posted
by feldur.
Last updated
.
Post not yet marked as solved
0 Replies
473 Views
Quick help (option-click) works fine on Xcode13 RC when examining library functions, but does nothing for local variables and functions / methods. Do I mis-understand what's expected of quick help? It makes no difference if I have documentation (cmd-option-/) for the element or not.
Posted
by feldur.
Last updated
.
Post not yet marked as solved
0 Replies
562 Views
I've build a form with a list of items. It's nested in a NavigationView with an EditButton, and works properly in preview. It needs to live nested via a NavigationLink in another view, however, and when previewed (or run in the simulator) that way the edit button causes a reaction that looks like a new view animating in, but that view is not editable.Why would this be? I've seen some material that uses the term edit scope, but I don't see what that is nor how it's controlled.Thanks
Posted
by feldur.
Last updated
.