Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About step 2 #24

Closed
GilisHugo opened this issue Dec 21, 2017 · 8 comments
Closed

About step 2 #24

GilisHugo opened this issue Dec 21, 2017 · 8 comments

Comments

@GilisHugo
Copy link

I've already set the root window as FAPanel controller.
But when i'm trying to do step 2,
i can't let rootController: FAPanelController = window?.rootViewController as! FAPanelController
because FAPanelController is a undeclared type.

I'm pretty like this pod and want to use it in my project.
Please let me know if there's any solution.
Best regard

@fahidattique55
Copy link
Owner

@GilisHugo,

You are mixing here the two mechanisms of using FAPanels.

First Way

If you have already set the root window as FAPanel controller from storyboard. then you won't face any issue in,

let rootController: FAPanelController = window?.rootViewController as! FAPanelController

Second Way

Create a FAPanelController and set it as root of your window

let rootController = FAPanelController()
window?.rootViewController = rootController

So these are the two ways to use it. Please let me know in case you face further issues integrating the library. Thanks for liking it. Hope you will enjoy using it :)

@theMoe
Copy link

theMoe commented Dec 22, 2017

I have the same error. If I add

import FAPlane

to AppDelegate.swift, I don't see the error anymore. But it doesn't work.

@fahidattique55
Copy link
Owner

@theMoe

Can you please add some details about the issue you are facing with FAPanels? That would be helpful for me to diagnose.

Thanks

@theMoe
Copy link

theMoe commented Dec 23, 2017

@fahidattique55 I think import in AppDelegate is not the right way. The problem is, that Xcode doesn't provide the FAPaneController, when I try it to add it to a ViewController.

@ibolat38
Copy link

ibolat38 commented Feb 2, 2018

@fahidattique55 @theMoe @GilisHugo Hello everyone, I have faced this problem. First I added 'FAPanles' on Cocoapods and then i just want to use 'leftMenuVC' ... On my project there is a ViewController as a 'UIViewController'.. I deleted it and I added 'FAPanelController' as a 'UIViewController' and i set it as a root.. but its still gives me error on Appdelegate < here error >

@fahidattique55
Copy link
Owner

@ibolat38

Please add import FAPanels the FAPanels framework in the file you are using FAPanels.

@ibolat38
Copy link

ibolat38 commented Feb 3, 2018

@fahidattique55 I already add it but it still gives me same error. < here FAPanelController >

@shahzaib-iosdev
Copy link

hi @fahidattique55 i am facing issue with your library. i have to use this side drawer after login screen so how can i use your side drawer withou appdelegate ? by without assigning it as a root view controller? any idea ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants