Skip to content

Commit

Permalink
Do resource deallocation in deinit of YPPickerVC instead of viewWillD…
Browse files Browse the repository at this point in the history
…isappear(_:)
  • Loading branch information
M-I-N committed Jan 31, 2022
1 parent 4dbae7a commit e07859d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/YPPickerVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ open class YPPickerVC: YPBottomPager, YPBottomPagerDelegate {
open override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
shouldHideStatusBar = false
}

deinit {
stopAll()
ypLog("YPPickerVC deinited ✅")
}

@objc
Expand Down

0 comments on commit e07859d

Please sign in to comment.