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

Only compatible with storyboards? #28

Open
sorted-bits opened this issue Jan 11, 2018 · 2 comments
Open

Only compatible with storyboards? #28

sorted-bits opened this issue Jan 11, 2018 · 2 comments

Comments

@sorted-bits
Copy link

I am trying out Cely in a small app that I am building, but I am not using Storyboards. I use the 'old' way, of just instantiating a UIViewController and assigning it to my UIWindow.

AppDelegate.swift

self.window = UIWindow()
self.window?.rootViewController = MainViewController()
self.window?.makeKeyAndVisible()

After this I setup Cely:
Cely.setup(with: window, forModel: User(), requiredProperties: [.token], withOptions: nil)

But while starting my application it crashes with the following error message:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle

Would using a custom CelyAnimator solve this (not sure?)

@initFabian
Copy link
Collaborator

@depl0y, unfortunately you are correct. Cely is currently only setup to work with Storyboard. If you'd like, you can make a PR to add the functionality you are asking for. I definitely do see the value of adding it to the framework.

@sorted-bits
Copy link
Author

I'll see what I can do. I switched to an custom made login screen at the moment, which 'works' for now.

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

No branches or pull requests

2 participants