Swift Tutorial
Learn Swift
Swift is a fast, safe, modern language created by Apple for iOS, macOS, watchOS, tvOS, and server-side development.
Swift features type inference, optionals, value semantics, and powerful protocols/generics.
Start learning Swift now »Learn Swift from beginner to master
The Swift tutorial covers the basics of Swift programming, including syntax, types, control flow, collections, functions, OOP, protocols, generics, concurrency, and iOS app patterns.
It is designed to be a comprehensive resource for learning Swift programming, and is intended for both beginners and experienced developers.
The last part of the tutorial covers iOS app development, including the use of Xcode, Interface Builder, and the App Store submission process.
Learning by Examples
With our online "Swift Tryit" editor, you can edit the Swift code, and click on a button to view the result.
Learning by Exercises
Many chapters in this tutorial end with an exercise where you can check you level of knowledge.
Swift Quiz
Test your Swift skills with a quiz.
Track Your Progress
Create a free W3Schools account and get access to more features and learning materials:
View your completed tutorials, exercises, and quizzes
Keep an eye on your progress and daily streaks
Set goals and create learning paths
Create your own personal website
Note: This is an optional feature. You can study at W3Schools without creating an account.