Skip to content

Commit

Permalink
Fix crash when set up scroll bar before first scroll view layoutSubviews
Browse files Browse the repository at this point in the history
  • Loading branch information
batanus committed Jun 3, 2023
1 parent b00688b commit a874a14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DMScrollBar/DMScrollBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public class DMScrollBar: UIView {

private func setupScrollView() {
scrollView?.showsVerticalScrollIndicator = false
scrollView?.layoutIfNeeded()
}

private func setupScrollIndicator() {
Expand Down

0 comments on commit a874a14

Please sign in to comment.