How to make an infinite scroll view with Pagination in SwiftUI - iTunes Search API - PART 2/7

Опубликовано: 12 Октябрь 2024
на канале: Karin Prater
10,393
199

Let's build an app with the iTunes search API. In the 2nd part of this series I will implement an infinite scroll view. I will talk about the concept of paging for REST APIs. Loading data can be tricky and we need to talk about loading and error states.

overview
0:00 introduction
01:49 Pagination - Request more data
16:39 State for loading, error and loaded all
28:32 show suggestions when not searching
34:51 wrap up

PART 1:    • How to make a complex app in SwiftUI ...  

iTunes Search API: https://developer.apple.com/library/a...

If you liked what you learned and you want to see more, check out one of my courses!
👨‍💻 my SwiftUI course https://school.swiftyplace.com/course...
👨‍💻 my Core Data and SwiftUI course https://school.swiftyplace.com/course...
👩🏻‍💻 Combine course
https://school.swiftyplace.com/course...

⬇️ Project file for starting point:
https://github.com/gahntpo/ItunesSear...

⬇️ End: https://github.com/gahntpo/ItunesSear...

PREVIOUS PART:    • How to make a complex app in SwiftUI ...  
NEXT PART:    • How to improve your URL Queries and N...  

#SwiftUI #scrollview #fetchdrequest