filmov
tv
Scroll Programmatically with ScrollViewReader in a NavigationLink - iTunes Search API - PART 7/7

Показать описание
In the 7th part of the iTunes Search API tutorial series, we will implement the detail view for songs. This includes programmatically scrolling to the selected song when the detail view appears.
We need to do 2 fetch requests when opening the NavigationLink, which is done with 2 separate view models. These make the code more organised and reusable.
Last I want to change the minimum deployment target back from iOS 16 to 15. Therefore I need to show part of the code conditionally by checking the available iOS version and having an alternative for the Grid view-
Overview
00:00 Introduction
03:14 NavigationLink to Song Detail View
05:27 Song Detail View
5:39 fetching the data for Song Detail View
14:55 Reusable view for Album Header
19:36 Scroll programmatically with ScrollViewReader
33:06 onAppear vs onChange, how to update the UI
38:21 conditionally show views for different iOS versions
43:37 wrap up
If you liked what you learned and you want to see more, check out one of my courses!
👩🏻💻 Combine course
⬇️ Project file for starting point:
⬇️ End:
#SwiftUI #AsyncImage
We need to do 2 fetch requests when opening the NavigationLink, which is done with 2 separate view models. These make the code more organised and reusable.
Last I want to change the minimum deployment target back from iOS 16 to 15. Therefore I need to show part of the code conditionally by checking the available iOS version and having an alternative for the Grid view-
Overview
00:00 Introduction
03:14 NavigationLink to Song Detail View
05:27 Song Detail View
5:39 fetching the data for Song Detail View
14:55 Reusable view for Album Header
19:36 Scroll programmatically with ScrollViewReader
33:06 onAppear vs onChange, how to update the UI
38:21 conditionally show views for different iOS versions
43:37 wrap up
If you liked what you learned and you want to see more, check out one of my courses!
👩🏻💻 Combine course
⬇️ Project file for starting point:
⬇️ End:
#SwiftUI #AsyncImage
Scroll Programmatically with ScrollViewReader in a NavigationLink - iTunes Search API - PART 7/7
ScrollViewReader: Programmatic Scrolling in SwiftUI
Programmatic Scrolling in SwiftUI using ScrollViewReader
How to make a scroll view move to a location using ScrollViewReader – SwiftUI
How to Programmatically Scroll in SwiftUI With ScrollView
How to Programmatically Scroll in SwiftUI
ScrollViewReader to auto scroll in SwiftUI | Continued Learning #5
Auto-Scrolling using ScrollViewReader in SwiftUI with MVVM
How to Make ScrollViewReader Scroll to the Bottom in SwiftUI
ScrollView & ScrollViewReader | SwiftUI | Episode 15
ScrollView in SwiftUI And Automatic Scrolling With ScrollViewReader In SwiftUI (SwiftUI ScrollView)
SwiftUI Automatic Scrolling with Combine and ScrollViewReader
ScrollViewReader in SwiftUI
Fixing the SwiftUI ScrollViewReader Scrolling Issue: A Developer's Guide
swiftui new Scroll View APIs
SwiftUI How to Scroll a List - ScrollToRow - ScrollViewReader - iOS
How to Use ScrollViewReader.scrollTo Without Obscuring Section Headers in SwiftUI
ScrollViewReader to Automatically Scroll
How to Make a SwiftUI List Scroll Automatically
ScrollViewReader SwiftUI 2.0
It’s not a ScrollView. Then what is it? SwiftUI #Shorts
Change ScrollView Position Using ScrollViewReader in SwiftUI iOS 14
How to Scroll to the Bottom of a ScrollView in SwiftUI
SwiftUI: Custom Scroll View With Accessible Content Offset
Комментарии