From 418d31bf7d5e55234df5d035372eb9ff7a35fdac Mon Sep 17 00:00:00 2001 From: Brody Roberts Date: Wed, 8 Oct 2025 09:59:48 -0700 Subject: [PATCH 1/2] public init --- Sources/FlowStack/FlowStack.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/FlowStack/FlowStack.swift b/Sources/FlowStack/FlowStack.swift index 1b19c95..b973780 100644 --- a/Sources/FlowStack/FlowStack.swift +++ b/Sources/FlowStack/FlowStack.swift @@ -211,7 +211,7 @@ public struct FlowStack: View { @Binding private var path: FlowPath @State private var internalPath: FlowPath = FlowPath() - private var customSmoothAnimation: CustomSmoothAnimation + var customSmoothAnimation: CustomSmoothAnimation private var overlayAlignment: Alignment private var root: () -> Root @@ -404,6 +404,11 @@ public struct CustomSmoothAnimation { var duration: Double var bounce: Double + public init(duration: Double = 0.24, bounce: Double = 0.2) { + self.duration = duration + self.bounce = bounce + } + static let `default` = CustomSmoothAnimation(duration: 0.24, bounce: 0.2) var animation: Animation { From 9e1c6c228cb8787d0734627acd5fe8bb352f1899 Mon Sep 17 00:00:00 2001 From: Brody Roberts Date: Wed, 8 Oct 2025 10:00:26 -0700 Subject: [PATCH 2/2] little typo --- Sources/FlowStack/FlowStack.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FlowStack/FlowStack.swift b/Sources/FlowStack/FlowStack.swift index b973780..a3d9111 100644 --- a/Sources/FlowStack/FlowStack.swift +++ b/Sources/FlowStack/FlowStack.swift @@ -211,7 +211,7 @@ public struct FlowStack: View { @Binding private var path: FlowPath @State private var internalPath: FlowPath = FlowPath() - var customSmoothAnimation: CustomSmoothAnimation + private var customSmoothAnimation: CustomSmoothAnimation private var overlayAlignment: Alignment private var root: () -> Root