pub fn import<M, N>(module: M, name: N) -> Import
Expand description
The import of a Swift type import UIKit
.
ยงExamples
use genco::prelude::*;
let toks = quote!($(swift::import("Foo", "Debug")));
assert_eq!(
vec![
"import Foo",
"",
"Debug",
],
toks.to_file_vec()?
);