Skip to content

Conversation

@muukii
Copy link
Contributor

@muukii muukii commented Dec 11, 2025

No description provided.

muukii and others added 22 commits December 10, 2025 17:50
- Change TiledViewController (UIViewController) to TiledView (UIView)
  - Simplifies integration as subview without child VC management
  - UICollectionView wrapper doesn't need full ViewController overhead

- Update TiledViewRepresentable to UIViewRepresentable
  - Rename viewController binding to tiledView

- Add layout attributes caching to TiledCollectionViewLayout
  - New usesAttributesCache option (default: true)
  - Reuse UICollectionViewLayoutAttributes objects instead of recreating
  - Only rebuild on bounds size change or explicit clear()
  - Improves scroll performance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add itemSizeProvider closure to TiledCollectionViewLayout for querying cell sizes
- Use TiledViewCell with UIHostingConfiguration for consistent size measurement
- Measure sizes using the same method as preferredLayoutAttributesFitting
- Add architecture documentation in docs/TiledView-Architecture.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add TiledDataSource struct with change tracking (prepend, append, update, remove, setItems)
- Use id: UUID and changeCounter: Int for cursor-based change consumption
- Update TiledView with applyDataSource method to consume pending changes
- Simplify TiledViewRepresentable to accept dataSource instead of @binding tiledView
- Update Demo to use declarative style with @State dataSource

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants