Improved caching:
- previously only line information was cached, now, final item locations are also cached.
New line spacing options:
- it is now possible to use view preferred spacing
Fit(lineSpacing: 20) { ... } // same as .fixed(20)
Fit(lineSpacing: .viewSpacing) { ... }
Fit(lineSpacing: .viewSpacing(minimum: 10)) { ... }
Both item and line fixed spacing can now be specified with Integer or Float literal:
Fit(lineSpacing: 20, itemSpacing: 10) { ... }
Fixed:
- fixed some bugs with linebreak requests;
- fixed line height calculation: now properly takes vertical alignment into account.