Introduction to Swift
Swift is Apple's language for building apps across iOS, iPadOS, macOS, and beyond — the modern replacement for Objective-C, Apple's older language.
Example: the simplest Swift program
print("Hello, world!")
Hello, world!
Notice there's no wrapping function, no class, not even a semicolon — Swift is designed to let a simple program stay genuinely simple. It's statically typed and designed to catch common bugs (like using a value that was never actually set) at compile time, similar in spirit to Kotlin's approach to the same problem on the Android side.
print("Hello, world!")
Hello, world!