Want to learn and master Swift?

Join Exercism’s Swift Track for access to 98 exercises grouped into 41 Swift Concepts, with automatic analysis of your code and personal mentoring, all 100% free.

Explore concepts

About Swift

//
// HelloWorld.swift
//

struct HelloWorld {
    static func hello(_ text: String = "World") -> String {
        return "Hello, \(text)!"
    }
}

98 coding exercises for Swift on Exercism. From Layers of Lasagna to Scrabble Score.


Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.

See all Swift exercises on Exercism

Key Features of Swift


Swift

Modern

Swift incorporates the latest research on programming languages, combined with Apple's experience.

Designed for safety

Swift eliminates entire classes of unsafe code.

Fast and powerful

From its earliest conception, Swift was built to be fast.

Great first language

Swift was designed to be anyone’s first programming language.

Cross platform

Support Apple platforms and Linux, with community members working to port to even more platforms.

Open source

Swift is open-source and developed in the open at Swift.org.

A taste of the concepts you’ll cover


See all the concepts for Swift

Get mentored the Swift way

Every language has its own way of doing things. Swift is no different. Our mentors will help you learn to think like a Swift developer and how to write idiomatic code in Swift. Once you've solved an exercise, submit it to our volunteer team, and they'll give you hints, ideas, and feedback on how to make it feel more like what you'd normally see in Swift - they'll help you discover the things you don't know that you don't know.

Learn more about mentoring

Community-sourced Swift exercises

The Swift track on Exercism has 41 concepts and 102 exercises to help you write better code. Discover new exercises as you progress and get engrossed in learning new concepts and improving the way you currently write.

See all Swift exercises
Swift

Get started with the Swift track

The best part, it’s 100% free for everyone.