If apps are not in full screen but in front of the desk, you can move them back and forth using drag and drop on the navigation bar (this is the area where Test is shown in the picture). Is it possible in SwiftUI to define your own areas where this is possible? So, for example, that you can move the window with a click anywhere on the window?
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationSplitView {
List {
NavigationLink {
Text("Item")
} label: {
Text("Content")
}
}
}
.navigationSplitViewColumnWidth(min: 180, ideal: 200)
.toolbar {
ToolbarItem {
Button() {
Label("Add Item", systemImage: "plus")
}
}
}
} detail: {
Text("Select an item")
}
}
}