ios - What gets imported with UIKit, and how do I find out? -
when using objective-c , importing headers, made sense me getting imported. example, have import uikit can use coregraphics, example. how can tell other frameworks each framework importing swift? i'm doing importing uikit, can still use core graphics. i've searched documentation, framework reference doesn't mention it.
open swift source file. find import uikit
line. command-click on word uikit
. you'll see uikit
imports:
import foundation import uikit.nsattributedstring import uikit.nsfileproviderextension import uikit.nslayoutconstraint import uikit.nslayoutmanager import uikit.nsparagraphstyle import uikit.nsshadow import uikit.nsstringdrawing import uikit.nstext import uikit.nstextattachment import uikit.nstextcontainer ... many more
command-click on word foundation
on first line see imports:
import corefoundation import coregraphics import foundation.foundationerrors import foundation.nsarray import foundation.nsattributedstring import foundation.nsautoreleasepool import foundation.nsbundle import foundation.nsbytecountformatter import foundation.nsbyteorder ... many more
repeat until bored or satisfied.
Comments
Post a Comment