Open source CapCut alternative.
TypeScript
fix(app): restore the notch's two-phase expand spring
David Le1176512a4e91
diff --git a/apps/Donkey/Sources/Donkey/UserQueryOverlayController.swift b/apps/Donkey/Sources/Donkey/UserQueryOverlayController.swiftindex 8cbbdba9..06ca6505 100644--- a/apps/Donkey/Sources/Donkey/UserQueryOverlayController.swift+++ b/apps/Donkey/Sources/Donkey/UserQueryOverlayController.swift@@ -861,6 +861,14 @@ final class UserQueryOverlayController {private func flushStatusHostLayout() {guard let statusPanel else { return }+ // The host uses `sizingOptions = []` (see makeStatusPanel) to keep its SwiftUI content+ // from re-driving the window size. A side effect is that assigning `rootView` no longer+ // invalidates the hosting view's AppKit layout, so `layoutSubtreeIfNeeded()` alone won't+ // flush the pending SwiftUI render. The two-phase open depends on the collapsed render+ // committing *before* `isStatusExpanded` flips — otherwise the two passes coalesce and the+ // notch snaps open instead of springing. Mark the host dirty so the flush forces it through.+ statusHostingView?.needsLayout = true+ statusHostingView?.needsDisplay = trueflushPanelLayout(statusPanel)}