Skip to content

1.0.2

Latest
Compare
Choose a tag to compare
@OlehKorchytskyi OlehKorchytskyi released this 09 Jun 14:39
· 1 commit to main since this release

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.