From 64f2bf0b1c9cb556cbc4ca0fbaf2296fcd6594ee Mon Sep 17 00:00:00 2001 From: Javen Wang Date: Thu, 29 Jun 2017 19:55:18 +0800 Subject: [PATCH] fix error when CLANG_ENABLE_MODULES is NO Without this fix we will get this error: MZFormSheetPresentationContentSizing.h:27:1: Use of '@import' when modules are disabled --- MZFormSheetPresentationController/MZBlurEffectAdapter.h | 2 +- .../MZFormSheetContentSizingNavigationControllerAnimator.h | 2 +- .../MZFormSheetPresentationContentSizing.h | 2 +- ...MZFormSheetPresentationViewControllerAnimatedTransitioning.h | 2 +- .../MZFormSheetPresentationViewControllerAnimator.h | 2 +- MZFormSheetPresentationController/MZTransition.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/MZFormSheetPresentationController/MZBlurEffectAdapter.h b/MZFormSheetPresentationController/MZBlurEffectAdapter.h index d328b61..980e1bd 100644 --- a/MZFormSheetPresentationController/MZBlurEffectAdapter.h +++ b/MZFormSheetPresentationController/MZBlurEffectAdapter.h @@ -23,7 +23,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -@import UIKit; +#import @interface MZBlurEffectAdapter : NSObject @property (nonatomic, readonly) UIBlurEffect *blurEffect; diff --git a/MZFormSheetPresentationController/MZFormSheetContentSizingNavigationControllerAnimator.h b/MZFormSheetPresentationController/MZFormSheetContentSizingNavigationControllerAnimator.h index 3e297ef..71476f3 100644 --- a/MZFormSheetPresentationController/MZFormSheetContentSizingNavigationControllerAnimator.h +++ b/MZFormSheetPresentationController/MZFormSheetContentSizingNavigationControllerAnimator.h @@ -7,7 +7,7 @@ // #import -@import UIKit; +#import @interface MZFormSheetContentSizingNavigationControllerAnimator : NSObject @property (nonatomic, assign) CGFloat duration; diff --git a/MZFormSheetPresentationController/MZFormSheetPresentationContentSizing.h b/MZFormSheetPresentationController/MZFormSheetPresentationContentSizing.h index 62cd1bd..07fde26 100644 --- a/MZFormSheetPresentationController/MZFormSheetPresentationContentSizing.h +++ b/MZFormSheetPresentationController/MZFormSheetPresentationContentSizing.h @@ -24,7 +24,7 @@ // THE SOFTWARE. #import -@import UIKit; +#import @class MZFormSheetPresentationController; diff --git a/MZFormSheetPresentationController/MZFormSheetPresentationViewControllerAnimatedTransitioning.h b/MZFormSheetPresentationController/MZFormSheetPresentationViewControllerAnimatedTransitioning.h index aee74f7..eb8851a 100644 --- a/MZFormSheetPresentationController/MZFormSheetPresentationViewControllerAnimatedTransitioning.h +++ b/MZFormSheetPresentationController/MZFormSheetPresentationViewControllerAnimatedTransitioning.h @@ -23,7 +23,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -@import UIKit; +#import @protocol MZFormSheetPresentationViewControllerAnimatedTransitioning @property (nonatomic, assign, getter=isPresenting) BOOL presenting; diff --git a/MZFormSheetPresentationController/MZFormSheetPresentationViewControllerAnimator.h b/MZFormSheetPresentationController/MZFormSheetPresentationViewControllerAnimator.h index 9a07250..50fc7ad 100644 --- a/MZFormSheetPresentationController/MZFormSheetPresentationViewControllerAnimator.h +++ b/MZFormSheetPresentationController/MZFormSheetPresentationViewControllerAnimator.h @@ -23,7 +23,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -@import UIKit; +#import #import "MZTransition.h" #import "MZFormSheetPresentationViewControllerAnimatedTransitioning.h" diff --git a/MZFormSheetPresentationController/MZTransition.h b/MZFormSheetPresentationController/MZTransition.h index 2e5b918..0f1b4c5 100644 --- a/MZFormSheetPresentationController/MZTransition.h +++ b/MZFormSheetPresentationController/MZTransition.h @@ -25,7 +25,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -@import UIKit; +#import extern NSString *const __nonnull MZTransitionExceptionMethodNotImplemented;