Swift Concurrency Lesson 1 - Creating Models and an APIService
Автор: CodeWithChris
Загружено: 2021-12-01
Просмотров: 16613
Описание:
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:
• iOS Concurrency
Project Resources:
https://www.dropbox.com/s/jqo3vwy496e...
Completed Source code for Part 1:
https://www.dropbox.com/s/35lo8kp147i...
JSON Placeholder API: https://jsonplaceholder.typicode.com
Duck Model Editor: https://apps.apple.com/ca/app/ducky-m...
QuickType: https://app.quicktype.io
JSON and Codable Protocol Series: • JSON and Codable Protocol - Swift
Demystifying Completion Handlers and Asynchronous Functions: • Demystifying Completion Handlers and Async...
A Better Result: • A Better Result
Introduction to Generics in Swift: • Introduction to Generics in Swift
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:
https://cwc.to/youtubeoffer
MY FREE ONLINE COURSE:
⚡ How to make an app in 14 days - https://cwc.to/14days
CWC+ PROGRAM:
👩💻 All our courses in a learning path - https://cwc.to/plus
WEEKLY UPDATES VIA EMAIL:
✉️ Every Saturday, receive an email digest of new content - https://cwc.to/newsletter
CONNECT:
🌍 Website - https://codewithchris.com
😺 GitHub - https://github.com/codewithchris
📸 Instagram - / codewithchris
🐦 Twitter - / 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! https://cwc.to/reviews
DID THESE LESSONS HELP YOU?
Please let me know! - https://feedback.codewithchris.com
ROADMAP:
https://roadmap.codewithchris.com
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: