KarrotListKit
KarrotListKit copied to clipboard
[Breaking] Remove Layout Mode and Size Storage
Summary
This PR removes the deprecated layout mode system and component size storage
functionality from KarrotListKit. These features were no longer being used and
added unnecessary complexity to the codebase.
Changes
- Removed layoutMode property from
Componentprotocol andAnyComponent- Deleted
ContentLayoutModeenum entirely - Cleaned up related test code
- Deleted
- Removed
sizeStoragefunctionality- Deleted
ComponentSizeStorageclass - Removed size storage integration from
CollectionViewAdapterandCollectionViewLayoutAdaptable - Cleaned up size storage usage in collection view cells and reusable views
- Deleted
- Removed unused section layout implementations
- Deleted
DefaultCompositionalLayoutSectionFactory,HorizontalLayout,VerticalGridLayout, andVerticalLayoutclasses - Simplified
CompositionalLayoutSectionFactoryby removing layout-specific logic - Updated Section to remove layout-related properties
- Deleted
- Updated documentation and sample app
- Updated README to reflect the removal of layout mode
- Simplified sample app code that was using the removed features
Impact
This is a breaking change that removes previously deprecated APIs. Projects using layoutMode, sizeStorage, or the removed layout classes will need to migrate to alternative approaches.
Testing
- All existing tests have been updated
- Removed tests specific to the deleted functionality
- Sample app has been tested and works correctly without these features