Skip to content

Commit

Permalink
change thread
Browse files Browse the repository at this point in the history
  • Loading branch information
wanderingfairy committed May 13, 2021
1 parent 3ac7e88 commit c3fb911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/General/SegementSlideViewController+setup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ extension SegementSlideViewController {
resetCurrentChildViewControllerContentOffsetY()
resetOtherCachedChildViewControllerContentOffsetY()
scrollView.contentOffset.y = 0
DispatchQueue.global().asyncAfter(deadline: .now() + 2) {
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
self.observeScrollViewContentOffset()
}
}
Expand Down

0 comments on commit c3fb911

Please sign in to comment.