0

When making a swift script I'd like to breakdown my code into separate files and import files at my whim. However, previous Stackoverflow posts state it's impossible in Swift 1.2

How to include .swift file from other .swift file in an immediate mode?,

or provide workarounds involving file concatenation

Is there a way to have a Swift script use multiple files

My question is the following: Does Swift 2.0 address and resolve the issue of importing one Swift file from another Swift file?

Community
  • 1
  • 1
  • What is a Swift script, the word script is throwing me. – zaph Aug 29 '15 at 20:47
  • Zaph, a Swift script is a swift file that can be executed outside of an Xcode project. Please check on the first link for an example. – andrewcl Aug 29 '15 at 20:53

0 Answers0