'How to set the left inset of UICollectionViewListCell text to 0
I created a list by using collection view compositional layout and implemented a default style cell ( please see the picture UICollectionViewListCell
There is a space of 20pt on the left side of the text. The space might be different on different screen sizes.
I tried to set its leading inset to 0, but the space won't reflect the value unless the value is bigger than 20
section.contentInsets = .init(top: 0, leading: 0, bottom: 0, trailing: 0)
Is there any way to remove the space? or how can I get the space value?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
