Skip to content

Commit

Permalink
Merge pull request #7 from finn-no/improve/bottom-target-rubber-band
Browse files Browse the repository at this point in the history
Add rubber band effect to the bottom target
  • Loading branch information
vadymmarkov authored Nov 26, 2019
2 parents 35db42c + 7a10ee5 commit fad76eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BottomSheetCalculator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct BottomSheetCalculator {
let bottomTarget = LimitTarget(
targetOffset: isDismissible ? superview.frame.height : maxOffset,
bound: bounds.first ?? maxOffset,
behavior: isDismissible ? .linear : .stop,
behavior: isDismissible ? .linear : .rubberBand(radius: threshold(0, maxOffset)),
isDismissible: isDismissible,
compare: >=
)
Expand Down

0 comments on commit fad76eb

Please sign in to comment.