pub fn import<M, N>(module: M, name: N) -> Importwhere
    M: Into<ItemStr>,
    N: Into<ItemStr>,
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()?
);