File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ public struct TransitionOptions {
109109public struct SpringSettings {
110110 let presentSpringParams : SpringParams
111111 let dismissSpringParams : SpringParams
112+
113+ public init ( presentSpringParams: SpringParams , dismissSpringParams: SpringParams ) {
114+ self . presentSpringParams = presentSpringParams
115+ self . dismissSpringParams = dismissSpringParams
116+ }
112117}
113118
114119/**
@@ -121,6 +126,11 @@ public struct SpringParams {
121126
122127 /// The initial spring velocity. For smooth start to the animation, match this value to the view’s velocity.
123128 let velocity : CGFloat
129+
130+ public init ( dampingRatio: CGFloat , velocity: CGFloat ) {
131+ self . dampingRatio = dampingRatio
132+ self . velocity = velocity
133+ }
124134}
125135
126136/**
You can’t perform that action at this time.
0 commit comments