Using UICollectionLayoutListConfiguration with storyboards

Can you use the new UICollectionLayoutListConfiguration API in iOS 14 with collection views in storyboards? I have a UICollectionViewController in a storyboard, which I configure with a custom list layout below: var config = UICollectionLayoutListConfiguration(appearance: .plain) let layout = UICollectionViewCompositionalLayout.list(using: config) collectionView.setCollectionViewLayout(layout, animated: false) collectionView.dataSource = dataSource (In storyboards collection views can only be set […]

By weiran
Categorised as ios, swift, uicollectionview Tagged , ,

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us