SwiftUI Pagination & Infinite ScrollViews iOS 18
HTML-код
- Опубликовано: 15 сен 2024
- In this video learn how to use the latest iOS 18 ScrollView APIs to build a SwiftUI app that fetches characters from the Rick and Morty API with pagination and infinite scrolling. This tutorial covers:
Making API calls with URLSession and decoding JSON data
Structuring your data models (CharacterResponse, Info, Character)
Implementing a NetworkService class to handle pagination
Displaying characters in a scrollable list using ScrollView and LazyVStack
Triggering the "load more" functionality as the user scrolls
Whether you're a beginner or an experienced SwiftUI developer, this tutorial will help you master the art of fetching and displaying paginated data in your iOS apps.
#ios18 #swiftui #iosdevelopment #ios
love the energy , Keep it up 26