SwiftUI MVVM Tutorial Build A News App in SwiftUI (SwiftUI MVVM, SwiftUI Combine, SwiftUI Tutorial)
Автор: tundsdev
Загружено: 2021-02-14
Просмотров: 22251
Описание:
SwiftUI MVVM Tutorial Build A News App in SwiftUI (SwiftUI MVVM, SwiftUI Combine, SwiftUI Tutorial)
Welcome back to the channel 👋🏾 In this swiftui tutorial we’ll be building a news app. We’ll learn how to use swiftui with Combine, swiftui api call json example alongside swiftui json parsing, we’ll look into using SwiftUI MVVM, we’ll also interact with an API to get our newsfeed, use SPM(Swift Package Manager) to speed up our development flow and handle swiftui layout with views such as VStack. So stick around to learn something new and let’s build this swiftui news app.
*Note*
Sometimes the API may reach the limit and throw an error, this is something out of my control. I've provided a link with the source code below so you can compare, if your source code is the same as mine then everything is working fine, the API may have just hit its limit.
There have been some minor changes to the library for asynchronously downloading images. I have updated the source code, which you can find here on my Github, the folder is named the same as the video title
https://github.com/tunds/YouTubeResou...
Timestamps
00:00 Intro
00:36 Discussing lil api’s
01:31 Creating a new Xcode project
03:28 Setting up and creating our model
06:48 Setting up our API endpoint enum
10:08 Setting up our Errors
12:22 Creating our news service struct
24:55 Creating our ResultState enum
26:32 Creating our news viewmodel class
35:50 Using SPM (Swift Package Manager)
37:36 Laying out our ArticleView in SwiftUI
48:31 Laying out our ErrorView in SwiftUI
53:24 Hooking up our newsfeed to the API
01:00:09 Opening up links in SwiftUI
01:00:00 Testing our app
01:04:00 Wrapping up & Challenge
#swiftui #iosdev #iosdevelopment #swiftuitutorial
Twitter
/ tundsdev
Video Resources
Lil api
https://lil.software/api/
Postman
https://www.postman.com
Quicktype
https://app.quicktype.io
URLImage
https://github.com/dmytro-anokhin/url...
Jordan Singer Socials
Site: https://lil.software
Github: https://github.com/jordansinger
Twitter: / jsngr
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: