Skip to content

Commit

Permalink
After more testing, it does not need to call set layoutIfNeeded when …
Browse files Browse the repository at this point in the history
…the value doesn't change
  • Loading branch information
ulmentflam committed Aug 20, 2020
1 parent 6a426eb commit d747587
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions PulleyLib/PulleyViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -598,12 +598,6 @@ open class PulleyViewController: UIViewController, PulleyDrawerViewControllerDel
/// The currently rendered display mode for Pulley. This will match displayMode unless you have it set to 'automatic'. This will provide the 'actual' display mode (never automatic).
public fileprivate(set) var currentDisplayMode: PulleyDisplayMode = .automatic {
didSet {

if oldValue == currentDisplayMode {
if self.isViewLoaded {
self.view.layoutIfNeeded()
}
}

if oldValue != currentDisplayMode
{
Expand Down

0 comments on commit d747587

Please sign in to comment.