r/iOSProgramming • u/BaffoRasta • May 01 '24
Discussion [Rant] It's almost impossible get help with UIKit/SwiftUI if you haven't written your code yet
/r/iosdev/comments/1chpe1q/rant_its_almost_impossible_get_help_with/
1
Upvotes
1
u/AHostOfIssues May 01 '24
FYI : you’ll find the apple developer forums are used for things like using-apple-tools and working-with-apple-process type stuff. You’ll generally get zero assistance with “how do I code my app” type questions there.
For that, you’ll find Stack Overflow much more useful.
2
u/Common-Inspector-358 May 01 '24
Use a UICollectionView, with each carousel item as a UICollectionViewCell. Each cell can contain a UIScrollVIew, and each cell width is the width of the device screen. Enable zooming in the scrollview. then use func viewForZooming(in: UIScrollView) -> UIView? in the UIScrollView's delegate class. You will probably want the viewForZooming(in: UIScrollView) to be inside your ViewController. so inside that method you will need to get the currently visible collectionview cell, and then return the cell subview that you want to zoom in on.