Cely
Cely copied to clipboard
Only compatible with storyboards?
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?)
@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.
I'll see what I can do. I switched to an custom made login screen at the moment, which 'works' for now.