Ios swift – Detect when the user has scrolled to the end of a horizontal ScrollView in SwiftUI
I have created a horizontal carousel using a ScrollView with an HStack. This is my code: struct CarouselView<Content: View>: View { let content: Content private let spacing: CGFloat private let shouldSnap: Bool init(spacing: CGFloat = .zero, shouldSnap: Bool = false,…