Published on May 3, 2017 by CodeWithChris

These are the solutions for the programming challenges that can be found here:

Learn Swift 3 for Beginners

To do these challenges, I recommend that you have finished this video playlist first:

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!

Website: codewithchris.com

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

27 Comments on "Learn Swift – Solutions for the Programming Challenges"

Notify of
avatar

Nawab Hussaunnawab
Guest
Nawab Hussaunnawab
1 day 42 minutes ago

Hey Chris thanks for all the help u have been giving me, i have finally created my first app and it is on app store its name is "Jetster", could u plz download it and give me some feedback. thx.

Brian Rouse
Guest
Brian Rouse
3 days 9 hours ago
Hi Chris can you help me get from Main Game Scene To Another and back without the Main Game Scene being restarted? Thanks!// Game Scene 1 let sceneTwo = GameScene(fileNamed: "Scene2") sceneTwo?.scaleMode = .aspectFill self.view?.presentScene(sceneTwo!,transition: SKTransition.fade(withDuration: 0.5))//Game Scene 2 let sceneOne = GameScene(fileNamed: "GameScene") sceneOne?.scaleMode = .aspectFill self.view?.presentScene(sceneOne!,transition: SKTransition.fade(withDuration: 0.5))
Jacob Baehr
Guest
Jacob Baehr
6 days 6 hours ago

Thank you so much for making these, everything you do helps people

NaturalRX
Guest
NaturalRX
12 days 2 hours ago

are you going to any iOS conferences this year?I was thinking of AltConf and also will be attending 360iDev in Denver in August.Any experience with them in the past?

Chisom Odimmegwa
Guest
Chisom Odimmegwa
12 days 12 hours ago

Sir can you please make a tutorial on C programming on mac or find a friend that can help with it cuz all the tutorial I found on youtube are like 3 to 5 years old. Thank you

kevin sutrisno
Guest
kevin sutrisno
15 days 1 hour ago

Hi Chris ! this is my first attempt on learning swift coding. All i can say is ur swift series are awesome!I was lost too during the challenges. but finally figured how to do it after revising the lessons few times.I am looking forward to see more great content. Thank You Chris and God bless!

Matthew Stevens
Guest
Matthew Stevens
15 days 5 hours ago

Hey Chris, is it bad that I watched all your tutorial videos then when the time came for these challenges I was absolutely lost? Please be honest.

Sagar Gurung
Guest
Sagar Gurung
14 days 18 hours ago
Hey Matthew, hope you don't mind sharing my experiences as well on this thread. I'm also sort of in a same boat, but I've tend to realised that my logics to solve any problems (questions) seems to be very close to achieve the output, although, it doesn't always solves or gives me the output I want but the patterns I follow seems to be correct – which tells me I need more practices. (don't think I'm being cocky here!) Whilst, I was also working on Chris's Three Challenges, I also watched his entire videos first but still got lost somewhere.… Read more »
Matthew Stevens
Guest
Matthew Stevens
15 days 2 hours ago

Yeah I was doing this, the irony of the situation is though after every video when i practiced my own I could create my own content if that makes any sense but when assigned a task my brain goes into hiatus mode.

CodeWithChris
Guest
CodeWithChris
15 days 2 hours ago

+Matthew Stevens this happened to me too when I first learned. When you were watching the lessons, did you type it out in a playground on your own laptop? This was my mistake. After I started doing this, I started remembering everything a lot better.

venkat prabhu
Guest
venkat prabhu
16 days 7 hours ago

thank you very much for uploading videos , it helps me lot Could you make a video on SIGNUP & LOGIN using web services ?

venkat prabhu
Guest
venkat prabhu
15 days 49 minutes ago

Hope u understand

venkat prabhu
Guest
venkat prabhu
15 days 51 minutes ago

CodeWithChris just an account of own database using the REST webservice

CodeWithChris
Guest
CodeWithChris
15 days 2 hours ago

+venkat prabhu are they actually registering an account with Facebook? Or do you mean just an account in your own database?

venkat prabhu
Guest
venkat prabhu
16 days 1 hour ago

Thank you Chris for ur responsei mean I'm asking Could you make a video like Facebook *Registration page*Login pageUsing REST web services1.when user wants to register , those details should placed in external database2.If he wants update his detailsIt should update in external database3.if he want to delete his dataThe data should not be in external database

CodeWithChris
Guest
CodeWithChris
16 days 1 hour ago

Hey Venkat, thanks for the suggestions! Can you give me an example?

Sagar Gurung
Guest
Sagar Gurung
18 days 16 hours ago
Didn't realise you uploaded this solution videos here. Thanks Chris. Much appreciated!Btw, for challenge 1, I did it differently using .contains methods of array. Do you think this is also a good solutions to that question?func findAnimal(name: String) -> Bool{ let array1 = ["dog", "cat", "bird", "pig"] let array2 = ["turtle", "snake", "lizard", "shark"] if array1.contains(name) || array2.contains(name){ return true } else{ return false }}
Sagar Gurung
Guest
Sagar Gurung
14 days 18 hours ago

Thanks Chris for your prompt replies. Sure, I do understand what you meant above (put an app into production….) and the use of those built-in methods. I'm thinking now that this sort of extra advices here and there will also help learners like us to grasp as much as possible. Many thanks!

Sagar Gurung
Guest
Sagar Gurung
15 days 22 hours ago

Sure. I did try with very basic implementation but as I was doing some researches on arrays, found this built-in methods so gave it a try and did the magic :)We need more exercises like that Chris. Make an ebooks but with very efficient/good exercises, I'm more than happy to buy for your time and effort. Many thanks for being so responsive and punctual.

CodeWithChris
Guest
CodeWithChris
16 days 1 hour ago

Hey Sagar, i think it is! As a beginner focus on functionality because there's so much to learn and don't get too caught up with efficiency. Once you actually have to put an app into production (the app store), you can spend some time at that point thinking of more optimal solutions!

Andy Yermakov
Guest
Andy Yermakov
22 days 22 hours ago

Thanks for the video. I suppose it's really great.

CodeWithChris
Guest
CodeWithChris
15 days 2 hours ago

+Andy Yermakov thanks Andy!

wpDiscuz