Thuta Learning
BasicProgrammingbeginner

What is Swift?

Relax. We'll talk through this in plain words — no textbook voice.

Swift is a modern programming language that's the go-to choice across the Apple ecosystem. It's widely used to build iPhone apps, iPad apps, Mac apps, Apple Watch apps, and Apple TV apps. With Server-side Swift, you can even use it on Linux.

Swift's strengths include easy-to-read code, catching potential errors early at compile time, solid performance, and a good fit with modern app development patterns.

swift
// Swift code ကို Playground ထဲမှာ တိုက်ရိုက် run ကြည့်နိုင်ပါတယ်။
print("Hello, Swift!")

print() is a function that prints text to the console. Since Swift lets you write code from the top of a file and run it like a simple script, it's a comfortable place to start when you're just learning.

You should see
Hello, Swift!

Easy traps

  • If you write print(Hello) without quotes, Swift will treat Hello as a variable name and throw an error.
What is Swift? | Thuta Learning