With the latest update to Swift, I'm able to use classes, functions, etc. from Foundation and UIKit without having to include the import statements for them. If I add the import statement in Xcode, it shows it crossed out, as if it's depreciated.
Is it no longer necessary to include import statements for some modules like Foundation and UIKit in Swift?
This appears to be a bug in Xcode 7.3.0. As you said, if you continue to import it, there shouldn't be Amy problems. My guess is that we will see an update in the coming days or weeks to fix some of the bugs. Apple is getting ready to release Xcode 8 with Swift 3 in June and are getting the program ready for the switchover.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With