If you look at the Foundation Framework Reference , you can see which part of it. In particular, if you are not using any subclasses of NSObject (NSString, NSArray, etc.), you can probably remove this.
If you use Objective-C, you probably need to use Foundation, but if your code is mostly Swift, you can simply delete it, since String, Array are not subclasses of NSObject, but part of the Swift Standard Library.
fdiaz source
share