Skip to content

Commit

Permalink
Xcode 12 ios 14 layout loop fixed 52inc#390 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckaynar committed Apr 29, 2021
1 parent c3dddd0 commit c890f23
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions PulleyLib/PulleyViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,12 @@ open class PulleyViewController: UIViewController {
/// 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 self.isViewLoaded
{
self.view.setNeedsLayout()
}
if oldValue != currentDisplayMode {
if self.isViewLoaded
{
self.view.setNeedsLayout()
}

if oldValue != currentDisplayMode
{
delegate?.drawerDisplayModeDidChange?(drawer: self)
(drawerContentViewController as? PulleyDrawerViewControllerDelegate)?.drawerDisplayModeDidChange?(drawer: self)
(primaryContentContainer as? PulleyPrimaryContentControllerDelegate)?.drawerDisplayModeDidChange?(drawer: self)
Expand Down

0 comments on commit c890f23

Please sign in to comment.