SIGN IN SIGN UP

Resolve crash within NavigationSplitView in v2.3.4 (#102)

Hey! Per your recommendation, we (Bitrig) updated `STTextView` to v2.3.4
today. Unfortunately, this caused our app to crash on launch when using
`STTextView` within a `SwiftUI.NavigationSplitView`.

Sample code:
```swift
struct ContentView: View {
    var body: some View {
        NavigationSplitView {
            Spacer()
        } detail: {
            TextView(
                text: .constant(.init("Wow"))
            )
            .font(.system(size: 12, weight: .regular, design: .monospaced))
        }
    }
}
```

<img width="703" height="212" alt="Screenshot 2026-01-14 at 3 29 16 PM"
src="https://github.com/user-attachments/assets/b7ce1e07-ec8d-4b8c-bd12-15a584223004"
/>

I investigated the crash and believe it was caused by an invalidation
loop from `NavigationSplitView` while `STTextView` is resizing during
layout.

I found that implementing `sizeThatFits` to accept SwiftUI's size
proposal resolves the crash.

We have already made this change in our internal source editor package.
I'm making this PR to share the fix with other users as well in case
it's helpful. Thank you!
J
Julian Schiavo committed
041b1716756b4416aaaafa1022db4cefc9c42ccc
Parent: 986617e
Committed by GitHub <noreply@github.com> on 1/14/2026, 11:57:37 PM