
Kick off the Swift 5 course by guiding beginners through installation on Mac, Linux, or Windows, then cover Swift basics, what's new in Swift 5, and building an iPhone app.
install Swift on your mac with Xcode from the app store, using Apple's official development tools, and run Swift efficiently on a mac.
download the swift tar.gz for ubuntu from swift.org, unarchive it in your home directory, add swift to path, and run hello world from test.swift in the swift repl.
Install Swift on Windows and explore the limitations, the Swift 5 abi stability, and how to write and run a hello world example with Swift for Windows or in-browser editors.
Master swift basics using playgrounds in Xcode on a Mac, explore autocomplete, and compare Mac, Linux, and Windows workflows as you start your programming journey.
Discover how to declare and use variables and constants in Swift, using var and let, to store, update, and protect information like age and name.
Explore Swift types by comparing strings as text and ints as whole numbers, and learn to declare variables and constants with type annotations using a colon.
Explore Swift comments and the print function in the playground, using single-line and multi-line comments and printing variables like wallet, age, and a lucky number.
Learn how Swift handles math with doubles and floats, and how to mix types using conversions for accurate results. Tackle a feet-and-inches challenge and apply the order of operations.
Learn how booleans in Swift represent true or false and control flow with if statements, using variables and comparisons such as >, <, >=, <=, ==, and !=.
Learn else, and, or in Swift 5 by building practical if statements for height and weight checks that control code flow.
Explore arrays in Swift by building a string array of favorite movies, learn zero-based indexing, and perform operations like append, insert, remove, and count, while distinguishing constants from variables.
Explore swift loops by writing for loops to iterate numbers and arrays, print values, and use string interpolation to display ranks for your lucky numbers.
Build a Swift coding project that counts numbers above 5000 in an array using a for loop and if statement, with a running count updated by plus equals.
Master Swift tuples and sets in this intermediate lesson. Learn two-value tuples, zero-based access, and sets that ensure uniqueness, support contains checks, and insert operations.
Explore dictionaries in Swift: map keys to values, look up definitions by key, and add, update, or remove entries, noting keys are unique and order is not guaranteed.
Learn how to define and call functions in Swift with func, provide parameters, and return values, then see how printing inside a function runs when invoked.
Master swift optionals by treating values as either a real value or nil. Create optional types and unwrap safely with if let.
Learn how classes in Swift act as blueprints to create independent objects with their own properties and methods, and how to instantiate, access, and modify them.
Compare structs with classes, and explain value semantics and mutability; create and initialize structs with optional properties, illustrated by a dog and a headphone example.
Learn how to use enums in Swift 5, with a compass example and dot syntax, and apply a fur color enum to enforce valid dog colors for cleaner code.
Learn how to replace complex if statements with switches to handle ranges, enums, and exhaustive cases, and apply them to directions and color examples.
Build a Swift 5 function that takes any text, lowercases it, removes punctuation, counts words, and ranks them from most to least frequent for clear text analysis.
Explore Swift five api stability, its impact on runtime and reduced app sizes, and how code compiles back to a single api for quicker load times.
Explore Swift 5’s new features, including raw strings and string interpolation, and the result type. Learn about compactMapValues, improved enums with unknown handling, and the is multiple of operator.
Explore Swift package manager to import libraries, initialize packages with swift package init, and build and run with swift run, choosing between executable or library targets in terminal or Xcode.
Learn how to bring other people's code into your Swift projects using the Swift package manager, add dependencies, and generate an Xcode project for builds.
Begin by exploring Swift and Xcode, two core skills for building iPhone apps; learn Swift's beginner-friendly design and how to use Xcode to write code and design interfaces.
Open and explore Xcode, a primary tool for this course, using spotlight and iOS single view application template. Create a Swift project named Swift fun and learn the project structure.
Learn Swift fundamentals in an Xcode playground, creating variables with var and constants with let. See how age can change as a variable, while a constant remains fixed.
Learn to work with strings and ints, using double quotes for text. Explore variables and constants, camelcase naming, and examples like lucky number eight and pizza.
Discover how to use comments to annotate code and explain logic in Swift. Explore printing values to the console with single-line and multi-line comments for debugging and understanding flow.
Create a label in the storyboard, set its text, and center it with constraints across devices, then run in the iOS simulator to preview changes.
Learn how outlets connect the storyboard view to Swift code, create an outlet to a label, and update background color and label text programmatically to reflect code-driven changes.
Discover how to add a button in a storyboard, connect an action, and center it with constraints, then change the label and background color when tapped.
Master if statements in swift to decide outcomes using greater than, less than, equals, and else, with examples like printing ride eligibility and hot versus nice weather.
Learn counting in a Swift app by using a count variable and a button tap to update the label, convert int to string, and turn the background green at ten.
Have you ever wanted to try out programming but didn't know where to start? Have you previously tried to learn Swift but got fed up with incomplete YouTube videos and poorly written tutorials? Or are you looking to move your code from Swift 4 to 5?
THEN THIS IS THE COURSE FOR YOU!
In my Swift 5 course, I will walk you through all the essential information you need to write Swift code. I'm a self-taught programmer so I know what it feels like to start from scratch. I care about your learning, but even more importantly... I care about you!
What is Swift?
Swift is a programming language that allows you to write software for iPhones, iPads, Macs, Apple Watches, Apple TVs, desktops, servers, or anything else that runs code! Swift is great for new programmers because it is very intuitive, it continues to evolve as Apple adds new features, it is relatively easy to catch software bugs compared to other languages, and you can see your results immediately by running code in a Playground.
In 2014, Apple announced Swift, along with a 500-page manual explaining how this brand-new language worked. So I immediately jumped into that manual and within three days I created the internet's first Swift course! Since then, Swift has always been my favorite language to teach and I love how it keeps evolving! I have now taught over 200,000 students how to code with Swift, and I'm excited to have you join us. It's going to be a lot of fun :) Also, Swift is open source and so you can now take this course even if you are on a Linux or Windows computer!
Come learn what's new in Swift 5 and gain a new skill! See you inside!