Post

Replies

Boosts

Views

Activity

How to prevent continuity camera from correcting orientation?
I am using an AVCaptureSession in a macOS application for real time scan/image feature detection. Since most iPhone cameras are better than most Mac cameras I also support Continuity Camera. This generally works very well. However, when the user wants to point the iPhone/Continuity camera down at a document on the desk, as is most likely the case, the Continuity camera flips and 'corrects' the video orientation to landscape. How can I prevent that? I am using more or less the exact architecture that apple provides in the Supporting Continuity Camera sample app.
0
0
426
Mar ’24
NavigationSplitView as sheet content is missing NavigationBars on macOS
I need to display a "Search and add item to list" workflow in a SwiftUI Mac App that requires comparing lots of details. Therefore I want to show a NavigationSplitView with search results and detail view in a sheet (to make the workflow modal). However the NavigationSplitView is missing its children's navigation bars and bar items. Here is a really simple sample app demonstrating the problem. It should display a navigationTitle but doesn't: struct ContentView: View { var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundStyle(.tint) Text("Hello, world!") } .padding() .frame(width:800, height:800) .sheet(isPresented: .constant(true), content: { NavigationSplitView { List { Text("Item") } .navigationTitle("Title") } detail: { Text("Detail") } .frame(width:600, height:400) }) } } How to fix/work around this?
0
0
434
Jan ’24