<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 16, 2016 at 12:21 AM, Toni Suter via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi everyone,<div><br></div><div>Let's assume there's a Swift package with the following Layout:</div><div><br></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>MyPackage/</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>├── Package.swift</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>└── Sources</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> └── MyModule</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> ├── SubFolder</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> │ └── MyClass.swift</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> └── main.swift</span></div></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><br></span></div><div style="margin:0px;line-height:normal">As far as I can tell, there's still just one module called MyModule and the subfolder doesn't create</div><div style="margin:0px;line-height:normal">a nested module or something like that. Is that correct? Do only top level folders in the Sources directory</div><div style="margin:0px;line-height:normal">become modules?</div></div></blockquote><div><br></div><div><br></div><div>Yup thats correct, in this case there will be one executable module named `MyModule` with sources being `SubFolder/MyClass.swift` and `main.swift`.</div><div> </div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ankit<br><br></div>
</div></div>