Saturday, April 18, 2026
HomeiOS Developmentios - How you can convert a UITableViewCell to a SwiftUI View?

ios – How you can convert a UITableViewCell to a SwiftUI View?

[ad_1]

So I began refactoring a whole UITableViewController with customized UITableViewCells to a model new SwiftUI view.

Up to now I have been in a position to refactor each cell simply high quality apart from one which is fairly complicated (a UICollectionView inside a UITableViewCell, all made in Storyboard) so re-doing it in SwiftUI is simply not attainable, even much less when Im focusing on iOS 13 at least and I cant use stuff akin to Grids. I do know common UIKit views might be embed inside SwiftUI and viceversa with stuff akin to UIHostingController, UIViewRepresentable, and so forth however is it additionally attainable to transform customized stuff akin to UITableViewCells, UICollectionViewCells, and so forth?

I did search on-line however discovered principally easy methods to convert UIImageViews, not this.

Any pointers as wether that is even attainable within the first place is tremendous appreciated.

Thanks!

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments