Closed Jman012 closed 8 years ago
Hi @Jman012, thanks for your thorough report.
My primary interest has been making sure it's working for Swift. That said, check out this pull request. Another developer made this pod usable through Objective-C and may have inadvertently left some properties or classes out.
If you'd like to contribute to this library, please make the necessary changes and issue a pull request for me to review.
I have an Obj-C project and am transitioning from the SWReveal framework to this one, SideMenu. I'm experiencing a couple hiccups along the way with using the Swift pod in my Obj-C project, though.
Specifically, I can not access
menuBlurEffectStyle
normenuAddScreenEdgePanGesturesToPresent
in my Obj-C code, though other aspects work fine. There may be more missing, but those are the two I've tried to use but Xcode is not generating at least those two instances in the autogeneratedSideMenu-Swift.h
.I'm using Xcode 8 (8A218a), Cocoapods 1.0.1, and mostly everything is in Obj-C still. I put SideMenu into my Podfile, ran
pod install
andpod update
and cleaned the project, but whenever it generates the Swift-Header it seems to be missing some of the properties.I couldn't find much on similar issues as this one online. I am thinking it may have something to do with the default value for Swift parameters in
menuAddScreenEdgePanGesturesToPresent
though that wouldn't explain the case formenuBlurEffectStyle
as it seems perfectly convertable to Obj-C syntax.Here's an example error:
Here is my Podfile:
And the autogenerated
SideMenu-Swift.h
accessed by Cmd-clickingSideMenuManager
in my Obj-C code (Github doesn't let me include the file in this Issue):