Using PencilKit with SwiftUI, i notice that when the device is rotated, it clears the canvas. Is there a way to stop this?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
I’m wanting to use PencilKit with my SwiftUI application. I notice on the iPhone it has an additional pop up menu (+) which has some additional features.
I can’t seem to find anywhere where I can add this secondary pop up menu? And also, how can i include a text box as done on the Apple apps using Sketch?
thanks
Hi,
I am trying to get a navbar menu item which should open a new view when selected but I can't get NavLink to work with Menu.
.toolbar {
ToolbarItem(placement: .navigationBarLeading) {
Menu {
NavigationLink(destination: TestView()) {
Text("Test Navlink")
}
}
label: {
Label("Add", systemImage: "plus")
}
}
		 }
Aside from seeing this warning:
[UILog] Called -[UIContextMenuInteraction updateVisibleMenuWithBlock:] while no context menu is visible. This won't do anything.
I don't see any other error or warning in debugger. Code runs but nothing happens when you tap the menu item. It doesn't open the new view.
Any assistance would be greatly appreciated.