m1entus/MZFormSheetPresentationController

"Use of @import when modules are disabled" Error

Opened this issue · 2 comments

After do pod install in my OC project, I tried to put
#import "MZFormSheetPresentationViewController.h"
in my Home View Controller and put
MZFormSheetPresentationViewController *formSheetController = [[MZFormSheetPresentationViewController alloc] initWithContentViewController:self.navigationController];
in a method.

However, I got 3 same "Use of @import when modules are disabled" errors in MZTransition.h, MZFormSheetPresentationViewControllerAnimatedTransitioning.h and MZFormSheetPresentationContentSizing.h

The Xcode8 indicate these errors are caused by this line
"@import UIKit;"

Does anyone how to fix it?

Having the same issue, have tried multiple fixes.
No luck so far. Seems like you cannot use this library in an objective c++ class.

levey commented

Created PR in #147