Skip to content
LusonaHub#527 · Mon, 09 Nov 2026, 12:48:00 GMT
Tech Academy

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

0%

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.

Ctrl/⌘ + Enter

🧰 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.

Loading videos from the Hub shelf…

Loading the shelf…