Open source CapCut alternative.
TypeScript
fix(app): widen the notch two-phase open gap so the spring survives heavier content
David Lefe9a81de1685
diff --git a/apps/Donkey/Sources/DonkeyContracts/UserQueryNotchLayout.swift b/apps/Donkey/Sources/DonkeyContracts/UserQueryNotchLayout.swiftindex 880c85cd..6bd426da 100644--- a/apps/Donkey/Sources/DonkeyContracts/UserQueryNotchLayout.swift+++ b/apps/Donkey/Sources/DonkeyContracts/UserQueryNotchLayout.swift@@ -71,7 +71,12 @@ public struct UserQueryNotchMetrics: Equatable, Sendable {public static let expandedTaskContentHeight: CGFloat = 280public static let inputHorizontalMargin: CGFloat = 14public static let compactCommandContentVerticalPadding: CGFloat = 30- public static let openHostPreparationDelay: TimeInterval = 1.0 / 60.0+ /// Gap between rendering the collapsed baseline inside the expanded host and flipping+ /// `isExpanded` to spring the surface open. The collapsed render must fully commit first —+ /// otherwise the two passes coalesce and the notch snaps open instead of springing. One frame+ /// was too tight once the collapsed surface grew heavier content (pointer cluster + chin), whose+ /// SwiftUI render lands a frame late, so give the baseline a few frames to settle.+ public static let openHostPreparationDelay: TimeInterval = 0.08public static let closeAnimationDuration: TimeInterval = 0.22public var voidWidth: CGFloat