import Foundation vs UIKit

If you want to work with Strings, Dates, etc you need to import Foundation.

If you want to work with UITableViewController, UIAlertController you need to import UIKit.

If you import UIKit you do not need to import Foundation because it already imports it in the backstage.

2 Comments Add yours

Leave a comment