Because SwiftUI
has no UICollectionView-like
controls,so I used UIKit
instead.
According to interfacing-with-uikit, I know how SwiftUI
interacts with UIKit
, but I want to further use SwiftUI
to encapsulate UICollectionViewCell
, and use SwiftUI
to fill the content of UICollectionViewCell
, how can I do that.
As far as I know List in SwiftUI
are encapsulated according to UITableView
, I want SwiftUI
to do the same with UICollectionView
,I don't want to use some tripartite libraries to do this, I want to learn the secrets
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…