KnowledgeCity

Swift Beginner

Swift is one of the fastest-growing computer languages today.

Swift is one of the fastest-growing computer languages today. Created by Apple, developers use Swift to make apps for iOS, which runs on more than a billion iPhones around the world. Swift is an open-source language, complete with a compiler, a standard library, and an integrated development environment. It also has a package manager to help you build and distribute your projects. 

Swift has a focus on safety, speed, and expressiveness with its use of type inference and automatic memory management.  It has many powerful features to make your development easier, including generics, automatic reference counting, closures, and optionals. It uses types to ensure your code doesn’t crash inadvertently bypassing information to a wrong data type, and its syntax encourages you to write clean and understandable code. It’s a language that you’ll find easy to learn and easy to master. You’ll use Swift to build projects and apps for iOS, the desktop, and the web, and have fun while doing it!

Learning Objectives:

  • Explain simple and complex data types
  • Craft your program’s control flow with conditionals, if statements, and loops
  • Understand how to use functions
  • Describe the workings of data structures and classes
  • Identify when to use methods and how to implement them

Author: Mark Nair

Duration: 3h 35m · 34 lessons
Level: Beginner
Language: English

Skills you’ll gain

Apple XcodeIOS SDKIOS DevelopmentIOS ApplicationsSwift (Programming Language)Swift 3D

What You'll Learn

  • Explain simple and complex data types in Swift
  • Craft program control flow using conditionals, if statements, and loops
  • Use functions, including returning values and naming parameters and labels
  • Describe how data structures and classes work, including inheritance
  • Identify when to use methods and how to implement them
  • Work with Swift fundamentals such as variables, constants, tuples, strings, numbers, arrays, dictionaries, enums, and sets

Key Takeaways

  • Swift is an open-source language created by Apple, complete with a compiler, a standard library, an integrated development environment, and a package manager.
  • Developers use Swift to make apps for iOS, which runs on more than a billion iPhones around the world.
  • Swift focuses on safety, speed, and expressiveness through type inference and automatic memory management.
  • Swift includes powerful features such as generics, automatic reference counting, closures, and optionals.
  • Swift uses types to help prevent code from crashing by passing information to a wrong data type, and can be used to build projects for iOS, the desktop, and the web.

Frequently Asked Questions

What will I learn in the Swift Beginner course?

You will learn to explain simple and complex data types, craft your program's control flow with conditionals, if statements, and loops, use functions, describe how data structures and classes work, and identify when to use methods and how to implement them.

What tools and skills does this course cover?

The course covers Apple Xcode, the iOS SDK, iOS development, iOS applications, and the Swift programming language, and it introduces the command line and REPL.

What can I build with Swift after this course?

Swift can be used to build projects and apps for iOS, the desktop, and the web.

Is Swift hard to learn?

According to the course, Swift's syntax encourages clean, understandable code, making it a language that is easy to learn and easy to master.

What topics are included in the lessons?

Lessons cover a Swift overview, Xcode, type safety, code commenting and readability, variables, constants and tuples, strings, numbers, booleans, conditions, switch statements, loops, arrays, dictionaries, enums, sets, functions, structs, instances, initializers, property observers, classes, and inheritance.

Transcript

Show transcript (free preview lesson)

Transcript of the free preview lesson. Remaining lessons unlock with the full course.

Hello, welcome to KnowledgeCity's course on Swift. My name is Mark Nair and I'm an award-winning professor of technology and economics. I've been using and teaching the Swift programming language since Apple first introduced the language at the 2014 Worldwide Developers Conference in San Francisco. Swift is a terrific general purpose modern programming language. Which means it's fast, safe, expressive, and maybe more importantly for us, easy to learn, easy to read, and easy to use. You can use Swift to make apps for iOS devices, the Mac, and even create server side applications. In this course, you'll learn the basics of Swift development from using data and variables to more complex data structures such as arrays and dictionaries. You'll learn how Swift uses functions for reusable code and how structs and classes will help you better organize your logic and code. By the end of this course, you'll be able to write and run your own functional Swift code and you'll understand how variables, constants, and data structures, functions, and methods work within Swift. And you'll be on your way to writing your very own apps. So let's get started.

Learn on the Go

Take your learning anywhere — the KnowledgeCity mobile app lets you watch lessons on the go.