Lusona Tech Academy · Beginner → Intermediate
Swift and iOS (SwiftUI)
Apple's language for iPhone, iPad and Mac apps: Swift basics, optionals, structs, then screens with SwiftUI and state.
2 modules · 5 hands-on lessons · 16 h · 0 XP
Sign in to keep your progress on every device.
Module 1 · Swift basics
let, var and types
let is a constant, var can change: let name = "Ana", var score = 0. Swift infers types; you can write them too: var price: Double = 9.99.
Print with interpolation: print("\(name) has \(score) points").
Your task
Make a constant city = "Lisbon" and a variable visits = 3, then print Lisbon: 3 visits using \( ) interpolation.
🧰 iOS apps are built in Xcode on a Mac (free from the App Store). On Windows/Linux you can practise Swift with swift.org's toolchain or the Swift Playgrounds app on iPad. Here, Check reads your code and confirms the parts the task asks for.
