     println("//")
     println()
     println("import \(os.framework)")
-    println()
+    let modules = storyboards.filter{ $0.storyboard != nil }.flatMap{ $0.storyboard!.customModules }
+    for module in Set<String>(modules) {
+        println("import \(module)")
+    }
+    println()
+    
     println("//MARK: - Storyboards")
     println("struct Storyboards {")
     for file in storyboards {

                if let customClass = viewController.customClass {
                    println()
                    println("//MARK: - \(customClass)")
                    
                    if viewController.showCustomImport() {
                        println("import \(viewController.customModule)")
                        println()
                    }

                    if let segues = scene.segues?.filter({ return $0.identifier != nil })
                        where segues.count > 0 {

    lazy var segues: [Segue]? = {
        return self.searchNamed("segue")?.map { Segue(xml: $0) }
    }()
    
    lazy var customModule: String? = self.viewController?.customModule
    lazy var customModuleProvider: String? = self.viewController?.customModuleProvider
}

class ViewController: XMLObject {
