Cely icon indicating copy to clipboard operation
Cely copied to clipboard

Only compatible with storyboards?

Open wimhaanstra opened this issue 7 years ago • 2 comments

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?)

wimhaanstra avatar Jan 11 '18 19:01 wimhaanstra

@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.

initFabian avatar Jan 13 '18 14:01 initFabian

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

wimhaanstra avatar Jan 17 '18 06:01 wimhaanstra