How to use ECSlidingViewController in swift project

892 Views Asked by At

I'm trying to use ecslidingviewcontroller in my swift project but don't know how to proceed. I know about bridging headers in swift, and have imported ECSlidingViewController.h in my project.

How to call methods or use this in my project?

I'm trying to do something like self.slidingViewController property but getting error "value of type viewController has no member 'slidingviewcontroller' "

2

There are 2 best solutions below

0
Fayza Nawaz On BEST ANSWER

Just fixed the issue. In case we need to use any thing from category, we need to import that as well in our bridging header. slidingViewController is a property of category named as UIViewController+ECSlidingViewController.

I imported UIViewController+ECSlidingViewController in my bridging header and now i can use the property.

0
FARAZ On

Through Mix & Match ECSlidingViewController can be implement in Swift. I have implemented this and it's working fine.