great tutorial. One side of me thinks you could have used the opportunity to also teach clean code practices, but then the other side says this was quicker and gets the point across. New subscriber BTW.
As a follow up to this demo, maybe a looping carousel in SwiftUI only. I had to implement that at my work project for iOS 16, but I couldn't do it in SwiftUI and I had to revert to UIKit. Maybe in iOS 17 SwiftUI brings some useful APIs or view modifiers that can help with the looping part.
Then you have a problem and a Carousel is not likely the best way to display the images. I think you would have the same issue with the TabView solution too.
Guys, I have been facing problems when using TabView for carousels, especially when I want to preload images for the subsequent index. I want to track the state of the download-such as loading, loaded, and failure-using URLSession. Unfortunately, it causes the swipe to get stuck mid-swipe due to the conversion from Data to UIImage and then to SwiftUI Image. Has anyone else faced the same problems?
great tutorial. One side of me thinks you could have used the opportunity to also teach clean code practices, but then the other side says this was quicker and gets the point across. New subscriber BTW.
There is only so much time that people will pay attention so one has to make compromises
Thank you Stewart… 🍀💯🌈
Thank you, Stewart! Great techniques and a great resource to have!
Glad you enjoyed it!
Most excellent as always Stewart! Thanks so much!
Blessings,
--Mark
Excellent video! Thank you Stewart 🙂
Very welcome
Thank you for the demo.
Thanks, this video is really cool 🙌
As a follow up to this demo, maybe a looping carousel in SwiftUI only. I had to implement that at my work project for iOS 16, but I couldn't do it in SwiftUI and I had to revert to UIKit. Maybe in iOS 17 SwiftUI brings some useful APIs or view modifiers that can help with the looping part.
Smashing Tutorial Sir Ta Much :)
Great video!
Excellent video! Love the third example. What about if we have a lot of images like more than the width of the screen for the indicator view?
Then you have a problem and a Carousel is not likely the best way to display the images. I think you would have the same issue with the TabView solution too.
Guys, I have been facing problems when using TabView for carousels, especially when I want to preload images for the subsequent index. I want to track the state of the download-such as loading, loaded, and failure-using URLSession. Unfortunately, it causes the swipe to get stuck mid-swipe due to the conversion from Data to UIImage and then to SwiftUI Image. Has anyone else faced the same problems?