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 Secret Handshake to Palindrome Products.


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

See all Swift exercises on Exercism

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.