Skip to content

Commit 02d1de1

Browse files
authored
CustomSmoothAnimation Init Public (#42)
CustomSmoothAnimation now has a public init
1 parent 558d418 commit 02d1de1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/FlowStack/FlowStack.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,11 @@ public struct CustomSmoothAnimation {
404404
var duration: Double
405405
var bounce: Double
406406

407+
public init(duration: Double = 0.24, bounce: Double = 0.2) {
408+
self.duration = duration
409+
self.bounce = bounce
410+
}
411+
407412
static let `default` = CustomSmoothAnimation(duration: 0.24, bounce: 0.2)
408413

409414
var animation: Animation {

0 commit comments

Comments
 (0)