Importing and Exporting Modules in Swift vs. Nodejs

Hi,

I'm coming from a Nodejs background. When I used to modularize my code into separate files I had to export every file outside of the main file. Then, within the main fail, I had to import all external modules.

I don't see this in XCode when multiple files exist within a folder. It's as if they automatically interact with each other.

Is the process of exporting and importing to the main file in XCode native to the IDE?

Best,

Matt

I do, however, see 'import UIKit' or 'import Foundation.' This makes it look like you need to import built-in modules, but not the modules you create in separate files.

Importing and Exporting Modules in Swift vs. Nodejs
 
 
Q