How to disable the ability to collapse the SwiftUI Inspector?

I'm using the new SwiftUI Inspector API.

Is it possible to disable the ability to collapse the inspector (when dragging the mouse cursor on the ionspector splitter)?

Also, as a workaround, when the inspector is collapsed, I didn't find how I could expand the inspector programmatically?

import SwiftUI

struct SampleContentView: View {
    @State var inspectorPresented = true
    
    var body: some View {
        NavigationStack() {
            Text("Main View")
            .inspector(isPresented: $inspectorPresented, content: {
                Text("Inspector")
                    .inspectorColumnWidth(200)
            })
        }
    }
}

Accepted Reply

I found the solution using the modifier interactiveDismissDisabled(_:) https://developer.apple.com/documentation/swiftui/view/interactivedismissdisabled(_:)?changes=latest_minor

Replies

I found the solution using the modifier interactiveDismissDisabled(_:) https://developer.apple.com/documentation/swiftui/view/interactivedismissdisabled(_:)?changes=latest_minor