Yes, I've tested in playground and macOS app...
I can confirm that using an iOS playground and importing UIKit, it works. But, why? The symbol is part of the Swift Standard Library, why I need to import UIKit? In this way it's impossible to use inside mac apps.