Skip to content

Commit 0492bf1

Browse files
pavankatariaclaude
andcommitted
Update CHANGELOG for v0.9.0 release
- Mark as released (2026-01-28) - Add defaultCellConfiguration feature - Add deprecated delegate methods - Update summary Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 097cc3d commit 0492bf1

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

CHANGELOG.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10-
## [Unreleased] - v0.9.0: Self-Sizing Cells & Auto Layout
10+
## [0.9.0] - 2026-01-28: Self-Sizing Cells, Auto Layout & Default Cell Configuration
1111

1212
### Summary
1313
This release adds first-class support for **Auto Layout-driven cells** with automatic row heights and text wrapping. Use custom `UICollectionViewCell` subclasses with full constraint-based sizing to build rich, dynamic table layouts.
1414

15-
Also includes: new column width strategy API, major performance optimizations for large datasets, and bug fixes.
15+
Also includes: **default cell configuration** for easy styling without custom cells, new column width strategy API, major performance optimizations for large datasets, and bug fixes.
1616

1717
### Column Width Mode API
1818
- Added `DataTableColumnWidthMode` with explicit text-based and Auto Layout-based sizing.
@@ -114,6 +114,19 @@ config.columnWidthMode = .fitContentText(strategy: .maxMeasured) // Use font mea
114114

115115
### Added
116116

117+
- **`DataTableConfiguration.defaultCellConfiguration`** (`DefaultCellConfiguration`)
118+
- Customise the default `DataCell` appearance without creating custom cell classes
119+
- Set font, text colour, background colour, alignment, and more per-cell
120+
- Callback receives `(cell, value, indexPath, isHighlighted)` for conditional styling
121+
- Perfect for alternating row colours, highlighting negative values, per-column fonts
122+
- See `DefaultCellConfiguration.md` documentation for examples
123+
124+
- **`DataCell.dataLabel` now public**
125+
- Access the label directly in `defaultCellConfiguration` to customise font, colour, alignment
126+
127+
- **`DataCell.prepareForReuse()`**
128+
- Resets label styling on cell reuse to prevent stale styles from persisting
129+
117130
- **`DataTableConfiguration.columnWidthMode`** (`DataTableColumnWidthMode`)
118131
- Explicitly selects text measurement or Auto Layout measurement for column widths
119132
- Supports per-column overrides via `columnWidthModeProvider`
@@ -127,6 +140,16 @@ config.columnWidthMode = .fitContentText(strategy: .maxMeasured) // Use font mea
127140

128141
---
129142

143+
### Deprecated
144+
145+
- **`SwiftDataTableDelegate.dataTable(_:highlightedColorForRowIndex:)`**
146+
- Use `DataTableConfiguration.defaultCellConfiguration` instead
147+
148+
- **`SwiftDataTableDelegate.dataTable(_:unhighlightedColorForRowIndex:)`**
149+
- Use `DataTableConfiguration.defaultCellConfiguration` instead
150+
151+
---
152+
130153
### Fixed
131154

132155
- **Header column width calculation bug (unit mismatch)**: When using estimated widths, header titles were compared incorrectly against data widths. "Name" header (4 chars) was compared as `4` against data values measured in points (~35). Now both are in the same unit.

0 commit comments

Comments
 (0)