diff --git a/Pulley.podspec b/Pulley.podspec index 77787ce..2d685b7 100644 --- a/Pulley.podspec +++ b/Pulley.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'Pulley' - s.version = '2.8.1' + s.version = '2.8.2' s.summary = 'A library to imitate the iOS 10 Maps UI.' # This description is used to generate tags and improve search results. diff --git a/Pulley.xcodeproj/project.pbxproj b/Pulley.xcodeproj/project.pbxproj index c329a6b..7c2d0fd 100644 --- a/Pulley.xcodeproj/project.pbxproj +++ b/Pulley.xcodeproj/project.pbxproj @@ -213,7 +213,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0730; - LastUpgradeCheck = 1020; + LastUpgradeCheck = 1200; ORGANIZATIONNAME = 52inc; TargetAttributes = { 355DBF121E40EA4300671CDD = { @@ -392,6 +392,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -449,6 +450,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; diff --git a/Pulley.xcodeproj/xcshareddata/xcschemes/Pulley.xcscheme b/Pulley.xcodeproj/xcshareddata/xcschemes/Pulley.xcscheme index e0481fb..a8a36da 100644 --- a/Pulley.xcodeproj/xcshareddata/xcschemes/Pulley.xcscheme +++ b/Pulley.xcodeproj/xcshareddata/xcschemes/Pulley.xcscheme @@ -1,6 +1,6 @@ - - - - - - - - + + - - + + + + - + - + + - @@ -30,6 +30,7 @@ + @@ -41,7 +42,6 @@ - @@ -61,7 +61,7 @@ - + @@ -95,7 +95,7 @@ - + @@ -107,7 +107,7 @@ + @@ -132,7 +133,6 @@ - @@ -153,9 +153,9 @@ - - + + - @@ -228,16 +228,16 @@ @@ -278,6 +278,7 @@ + @@ -292,7 +293,6 @@ - @@ -312,4 +312,15 @@ + + + + + + + + + + + diff --git a/PulleyLib/PulleyViewController.swift b/PulleyLib/PulleyViewController.swift index 1ee47c4..d8462d9 100644 --- a/PulleyLib/PulleyViewController.swift +++ b/PulleyLib/PulleyViewController.swift @@ -598,13 +598,14 @@ 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 self.isViewLoaded - { - self.view.setNeedsLayout() - } if oldValue != currentDisplayMode { + if self.isViewLoaded + { + self.view.setNeedsLayout() + } + delegate?.drawerDisplayModeDidChange?(drawer: self) (drawerContentViewController as? PulleyDrawerViewControllerDelegate)?.drawerDisplayModeDidChange?(drawer: self) (primaryContentContainer as? PulleyPrimaryContentControllerDelegate)?.drawerDisplayModeDidChange?(drawer: self) @@ -995,7 +996,10 @@ open class PulleyViewController: UIViewController, PulleyDrawerViewControllerDel user of this library), then the corners parameter will be ignored. */ private func drawerMaskingPath(byRoundingCorners corners: UIRectCorner) -> UIBezierPath { - drawerContentViewController.view.layoutIfNeeded() + // 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() + } let path: UIBezierPath if let customPath = (drawerContentViewController.view.layer.mask as? CAShapeLayer)?.path {