You need to load the view controller by creating it from the storyboard within the framework.
Here is how. Initial conditions first:
Let's say your framework is called Coolness.
Say your storyboard frame is called CoolnessStoryboard.storyboard.
, public, CoolnessViewController.
, CoolnessStoryboard , CoolnessViewController .
import Coolness , CoolnessViewController , :
let s = UIStoryboard (
name: "CoolnessStoryboard", bundle: NSBundle(forClass: CoolnessViewController.self)
)
let vc = s.instantiateInitialViewController() as! UIViewController
self.presentViewController(vc, animated: true, completion: nil)
. . CoolnessViewController, . , . . ? , . ? . , (import Coolness), public ( ).