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 first of 6 videos in the Swift Concurrency - from Completion Handler to Async and Await series. In this first video, we will focus on creating our models from the JSON and an APIService to process the response. We will create a generic function to handle the different api endpoints and models and use a Result based completion handler with our own designed API Error. Links and Resources Swift Concurrency Series Playlist: youtube.com/playlist?list=PLMRqhzcHGw1a4jFHEBitPwCtAgPxWldfy Project Resources: dropbox.com/s/jqo3vwy496e2j78/L1%20Resources.zip?dl=0 Completed Source code for Part 1: dropbox.com/s/35lo8kp147ifi4t/iOS-Concurrency-L1-Completed.zip?dl=0 JSON Placeholder API: jsonplaceholder.typicode.com Duck Model Editor: apps.apple.com/ca/app/ducky-model-editor/id1525505933 QuickType: app.quicktype.io JSON and Codable Protocol Series: youtube.com/playlist?list=PLBn01m5Vbs4DKrm1gwIr_a-0B7yvlTZP6 Demystifying Completion Handlers and Asynchronous Functions: youtu.be/tuHcwRe61KE A Better Result: youtu.be/AIb3CQH8_jg Introduction to Generics in Swift: youtu.be/NY0LFoHQUbk Timestamps 0:00 Introduction 1:17 Add App Icon and Launch Screen 3:00 Introducing JSON Placeholder 3:40 Creating Models for the JSON Objects 8:27 Creating an APIService to fetch all users 16:02 Creating an APIError enum and using the Result type in completion handler 19:55 Making the APIService fetch function generic π¨ 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