To print "Hello, World!" in Swift, you can use the following code:
main.swift23 chars2 lines
You can either run the code in a Swift file in Xcode or run it in a playground. In both cases, the output "Hello, World!" will be printed in the console.
gistlibby LogSnag