Published on March 21, 2017 by CodeWithChris

This Learn Swift series is designed for beginners with NO programming experience. It uses the latest version of Swift 3 and Xcode 8.

In this lesson you’ll learn about optionals which often confuses people who are just new to learning Swift!

If you’ve ever wanted to learn Swift programming and build your own apps, this is it! Hands on training with PDF lesson notes and cheat sheet… Follow along! It’s the best way to learn!

I’ll be in the comments to help you along as you learn about Swift concepts such as variables, data types, if statements, loops, classes and more!

Swift Programming Syntax Cheat Sheet
codewithchris.leadpages.co/yt-learnswift-cheatsheet/

Swift Language Guide:
developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Inheritance.html#//apple_ref/doc/uid/TP40014097-CH17-ID193

Swift Open Source:
www.swift.org

PC Users:

This free Swift tutorial series is best paired with my How To Make An App with No Programming Experience series which can be found here:

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you’ll find a community of like minded learners! Learning something new is always more fun with other people!

My Website: codewithchris.com
My Courses: codewithchris.com/learn-how-to-build-iphone-apps-with-a-proven-framework/

CodeWithChris is dedicated to teaching beginners and non-programmers all about building iOS apps. On the site, you’ll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift 3, Xcode 8 and app building from my course and materials!

Intro & Outro music
“Heartbreaker” by Jahzzar (www.betterwithmusic.com/)

Leave a Reply

36 Comments on "Learn Swift for Beginners – Ep 13 – Optionals"

Notify of
avatar

Detonate
Guest
Detonate
11 days 22 hours ago

Great video series! really helpful for someone who doesn't have much time to dedicate in learning how to code

Vinokanth Velu
Guest
Vinokanth Velu
14 days 15 hours ago

I think Swift is really stupid language. They are overcomplicating concepts just so that it differs from robust languages like C++/Java. In those languages you choose initialise or not a variable in a simple readable way. Swift is a overkill in my opinion. But the tutorials are amazing. Thanks bro 😀

Michael Katt
Guest
Michael Katt
1 month 23 days ago

Question, is the data in a class public/global and changeable from outside the class object? You were able to set post.title = yo from outside object without sending a message to the object's member function (in this case there was none), this seems very dangerous. Great video series, thanks for sharing and keep up the great work

Mohammed Seif
Guest
Mohammed Seif
1 month 28 days ago

thank you man for your effort, you style is very simple to understand, I hope you keep up the good work and complete this series, help us beginners learn how to code thanks a lot man, may Allah reward you for that good deed 🙂

Hunter T
Guest
Hunter T
2 months 21 days ago

Thanks, Chris

Samuel Farmer
Guest
Samuel Farmer
2 months 21 days ago

Another great video. Just could not grasp what optionals were or why someone would use them before watching this. Now I do. Hope you continue to post great videos like this!

CodeWithChris
Guest
CodeWithChris
2 months 21 days ago

I will as long as you keep watching 🙂

Cavin Albert Belga
Guest
Cavin Albert Belga
2 months 24 days ago

Thank you for your tutorials! it helps a lot 🙂

Riccy Gee
Guest
Riccy Gee
3 months 22 hours ago

Great video as usual Chris. For the newbies, you could also use guard statements as an alternative to avoid the nasty if/let nests of doom. Guards can be extremely useful when you need your object to have a value. For example..let post = BlogPost()post.title = "Hey your title is here!"func foo() {guard let actualTitle = post.title else { print("No title here buddy") return } print(actualTitle)}foo()*console prints Hey your title is here!*

Riccy Gee
Guest
Riccy Gee
2 months 17 days ago

Of course, keep up the great work!

CodeWithChris
Guest
CodeWithChris
2 months 21 days ago

Thanks for the feedback and showing others Riccy! I'm still getting used to incorporating guard into my own coding habits. Here's a good article for anyone who's interested in learning more about when to use guard vs if: www.natashatherobot.com/swift-when-to-use-guard-vs-if/

Kapil Soni
Guest
Kapil Soni
3 months 1 day ago

Wow Burden of this optional is clear now. Now i can force unwrapp my idea to creat app. hahah! Thanks Chris

CodeWithChris
Guest
CodeWithChris
2 months 21 days ago

Hey Kapil, thanks for watching as always!

Bayar Berg
Guest
Bayar Berg
3 months 1 day ago

thank you Chris you're awesome

CodeWithChris
Guest
CodeWithChris
2 months 21 days ago

You're awesome too for learning with me haha 🙂

wpDiscuz