[][src]Function genco::lang::swift::import

pub fn import<M, N>(module: M, name: N) -> Import where
    M: Into<ItemStr>,
    N: Into<ItemStr>, 

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()?
);