SwiftUI Mac devs: I'm having an issue with window sizing when using an inspector. The minimum window size is larger than expected, so there's a gap at the bottom equal to the height of the title bar. The only solution I can find is to manually subtract 52 pixels, which is better than nothing but not great. Any better ideas? I'm working on macOS 15 but this happens on macOS 26 also. Here's the code, and more detail about the problem: https://gist.github.com/robotspacer/c9d845f67368f7b42de3b74d6cc009c6 #MacDev #SwiftUI
@robotspacer putting a GeometryReader at the view root, and applying the min frame size to it, fixes the problem on the vertical, but introduces a new one where the inspector can be clipped. But that might have an independent solution…
@stroughtonsmith I tried some similar ideas, but macOS 15 really doesn't like it when I enclose the inspector in a frame. The worst part is this animation, but there are other issues like often the separator doesn't get drawn. Thanks for the ideas though!
@robotspacer well an inspector is just an NSSplitView column in fancy dress, so if you can access the underlying split view you might be able to adjust the height constraints