Skip to content

Commit

Permalink
Reset index when configuring with new content heights (#55)
Browse files Browse the repository at this point in the history
Co-authored-by: Nina Graneggen <[email protected]>
  • Loading branch information
ninarg and Nina Graneggen authored Oct 22, 2021
1 parent 4f70b96 commit 1e34686
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/BottomSheetView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public final class BottomSheetView: UIView {

public func reload(with contentHeights: [CGFloat]) {
self.contentHeights = contentHeights
currentTargetOffsetIndex = 0
reset()
}

Expand Down

0 comments on commit 1e34686

Please sign in to comment.