[swift-evolution] [Draft] Adding a Build Configuration Import Test

Andrey Tarantsov andrey at tarantsov.com
Wed Mar 23 15:56:19 CDT 2016


Strong +1, very useful.

Perhaps importable instead of canImport? Looks and reads better:

// UXKit at WWDC'16, pretty please!
#if importable(UIKit)
typealias UXColor = UIColor
#elseif importable(Cocoa)
typealias UXColor = NSColor
#else
// meh
#endif

A.



More information about the swift-evolution mailing list