Shopify / FunctionalTableData

Declarative UITableViewDataSource implementation
MIT License
365 stars 30 forks source link

Allow configuring masksToBounds in CellStyle #184

Closed abecevello closed 4 years ago

abecevello commented 4 years ago

Updates CellStyle to allow configuring the masksToBounds property of a cell's layer. This is currently hardcoded to masksToBounds=true for UICollectionViewCells. This prevents some animations in cells that can occasionally go slightly outside the cell's bounds.

The default value for this property has been maintained to the existing behaviour.

abecevello commented 4 years ago

@raulriera There is a comment saying its UICollectionView only.

/// Whether the cell's layer is masked to bounds.
///
/// Supported by `UICollectionView` only.
public var masksToBounds: Bool