🎉 Exercism Research is now launched. Help Exercism, help science and have some fun at research.exercism.io 🎉

Swift

Join the Swift Track
Swift is a modern open-source language with the aim of making programming simple things easy, and difficult things possible while still being fast and safe by design. Swift can run in scripting mode in the included REPL or it can be compiled with full support for C and Objective-C interoperability.
Join the Swift Track
Track mentors

19 Mentors

Our mentors are friendly, experienced Swift developers who will help teach you new techniques and tricks.
Track students

9,767 Students

Join thousands of students who have enjoyed learning and improving their skills by taking this track.
Track exercises

83 Exercises

Hundreds of hours have gone into making these exercises fun, useful, and challenging to help you enjoy learning.

About Swift

//
// HelloWorld.swift
//

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

Swift is a modern open source programming language that runs on macOS, Linux and on Windows using a linux subsystem.

Swift was developed initially by Apple to interoperate with their key frameworks, Cocoa and CocoaTouch, both of which are mostly implemented in Objective-C.

Swift is influenced by a large number of existing programming languages, and it incorporates concepts from a wide range of programming methods. Everything from scripting to object oriented and functional programming.

Apple refers to Swift as a "protocol oriented programming language" and has expressed the goal of eventually making Swift useful for everything from scripts to an operating system.


This Swift Tour is an introduction the language on Apple's Public Developer Website.


Wikipedia's Swift Page giving a good, Wikipedia-styled overview.


Swift is documented in The Swift Programming Language - again, on Apple's Public Developer Website - and in the iBooks Store. The ePub version is also available on Swift.org.

Join the Swift track

A tremendous learning opportunity to explore the depth of your own knowledge

Exercism is fantastic in learning new languages but that is not the extent of it. If you are a "more experienced" programmer you may have encountered impostor syndrome: the idea you don't really know what you think you know. Exercism lets you solve problems and put them in the space of open feedback which is a tremendous learning opportunity to explore the depth of your own knowledge. Even if you have been programming in a language for awhile it is worth checking into Exercism to see where you stand with current implementation practices.

Relaxed. Encouraging. Supportive.

Meet the Swift Track mentors

Once you join the Swift language track, you will receive support and feedback from our team of mentors. Here are the bios of a few of the mentors of this track.

Avatar of Ai-Lyn Tang

Ai-Lyn Tang https://github.com/ailyntang

After thinkng about becoming a coder for years, I made the switch in 2018 and absolutely love it. I'm now a full time iOS developer. Look forward to helping you on your Swift journey!
Avatar of Dušan Tadić

Dušan Tadić https://www.dusantadic.dev

I'm an iOS developer using Swift since version 2.0. I'm a fan of Swift for its power and approachability.
Avatar of Timothy J

Timothy J https://github.com/timothybarraclough

I'm a professional iOS Developer, leaning towards a functional approach and mathematics based approach. I've been using Swift professionally since 2.0 was released.
Avatar of Corey Davis

Corey Davis Dining with Robots

I started with swift 2.0 and have been in love with it ever since. It offers such a powerful, clean, and elegant approach. Building the swift community is one of my greatest professional ambitions.
Avatar of Daniel Tartaglia

Daniel Tartaglia https://medium.com/@danielt1263

I've been programming since High School, but only started professionally in the late '90s. I started professional development of iOS apps in early 2010 and started using Swift professionally the day after its release.
Avatar of Dakota Kim

Dakota Kim https://github.com/GhostScientist

I have been programming for around 5 years using various languges and technologies. Currently, I focus on Swift and iOS development. I am excited to mentor for Swift and join Exercism's Objective-C track as a student!
Fun. Challenging. Interesting

Community-sourced Swift exercises

These are a few of the 83 exercises on the Swift track. You can see all the exercises here.

Simple Linked List
medium
lists
Linked List
medium
lists
House
medium
algorithms
text formatting
Leap
easy
integers
Perfect Numbers
easy
discriminated unions
integers
math
Crypto Square
medium
algorithms
strings
transforming

Get started with the Swift track. As with everything on Exercism, it's 100% free!

Join the Swift Track