Channel: CodeWithChris
Category: Education
Tags: async swiftconcurrency in swiftasync awaitawait swiftswiftui rest apiswift async taskswift 5 async awaitswift get json from urlswift asyncswift awaitswift concurrencycompletion handlerusing json in swiftswift concurrency backwards compatibilityresult typeshow to use result in swiftios concurrencyswift completion handler resultswift fetch data from apiswift async awaitswift result handlerswift fetch jsonswift concurrency backport
Description: This is the 3rd of 6 videos in the Swift Concurrency series. In this video we are going to improve the user experience by doing two things. Whenever our app is fetching and loading data, we want to present a spinning ProgressView on top of our view to indicate that the data is loading. If an error occurs, then we need to know about it so instead of printing the error to the console we want to present an alert to our users with that error information and ask them to contact us with that information. Links and Resources Swift Concurrency Series Playlist: youtube.com/playlist?list=PLMRqhzcHGw1a4jFHEBitPwCtAgPxWldfy Starter Code Completed Source code for Part 2: dropbox.com/s/sgsw5zpfif2dc8m/iOS-Concurrency-L2-Completed.zip?dl=0 Part 3 Completed Code: dropbox.com/s/82e03ylqbhivn77/iOS-Concurrency-L3-Completed.zip?dl=0 Enums and Associated Values: youtu.be/wLg4wZQsWd0 Timestamps 0:00 Introduction 0:51 Adding a ProgressView 4:58 Forcing an error 7:02 NSLocalizedDescription and the APIError 9:00 Presenting an Alert when there is an error π¨ SPECIAL CWC+ OFFER FOR YOUTUBE: cwc.to/youtubeoffer MY FREE ONLINE COURSE: β‘ How to make an app in 14 days - cwc.to/14days CWC+ PROGRAM: π©βπ» All our courses in a learning path - cwc.to/plus WEEKLY UPDATES VIA EMAIL: βοΈ Every Saturday, receive an email digest of new content - cwc.to/newsletter CONNECT: π Website - codewithchris.com πΊ GitHub - github.com/codewithchris πΈ Instagram - instagram.com/codewithchris π¦ Twitter - twitter.com/codewithchris ABOUT CODEWITHCHRIS: Hi Iβm Chris! Iβm dedicated to teaching fundamentals about how to make an app. This is important if youβre trying to land an iOS job, be a freelancer, increase or start a business with an app idea. On this channel and my website, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have learned to code and build apps on their own! cwc.to/reviews DID THESE LESSONS HELP YOU? Please let me know! - feedback.codewithchris.com ROADMAP: roadmap.codewithchris.com