[swift-users] SPM: Subfolders in a Module

Toni Suter tonisuter at me.com
Thu Sep 15 13:51:34 CDT 2016


Hi everyone,

Let's assume there's a Swift package with the following Layout:

MyPackage/
├── Package.swift
└── Sources
    └── MyModule
        ├── SubFolder
        │   └── MyClass.swift
        └── main.swift

As far as I can tell, there's still just one module called MyModule and the subfolder doesn't create
a nested module or something like that. Is that correct? Do only top level folders in the Sources directory
become modules?

Thanks and best regards,
Toni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160915/3397203e/attachment.html>


More information about the swift-users mailing list