Skip to content

Commit

Permalink
Merge pull request #395 from 52inc/xcode12
Browse files Browse the repository at this point in the history
Xcode12 drawerMaskingPath bug fix
  • Loading branch information
ulmentflam committed Sep 19, 2020
2 parents 13b02a0 + fdebcec commit a34e0ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Pulley.podspec
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Pulley'
s.version = '2.8.2'
s.version = '2.8.3'
s.summary = 'A library to imitate the iOS 10 Maps UI.'

# This description is used to generate tags and improve search results.
Expand Down
6 changes: 3 additions & 3 deletions PulleyLib/PulleyViewController.swift
Expand Up @@ -996,9 +996,9 @@ open class PulleyViewController: UIViewController, PulleyDrawerViewControllerDel
user of this library), then the corners parameter will be ignored.
*/
private func drawerMaskingPath(byRoundingCorners corners: UIRectCorner) -> UIBezierPath {
// Only layout the drawer content view if the position is not closed. If the position is closed this view is not visable and does not need to be layout for the masking path. This is the root of iOS 14 auto layout feedback loop.
if drawerPosition != .closed {
drawerContentViewController.view.layoutIfNeeded()
// In lue of drawerContentViewController.view.layoutIfNeeded() whenever this function is called, if the viewController is loaded setNeedsLayout
if drawerContentViewController.isViewLoaded {
drawerContentViewController.view.setNeedsLayout()
}

let path: UIBezierPath
Expand Down

0 comments on commit a34e0ed

Please sign in to comment.