Skip to content

Releases: OlehKorchytskyi/Fit

1.0.2

09 Jun 14:39
Compare
Choose a tag to compare

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.

1.0.1

26 May 19:06
Compare
Choose a tag to compare

New:

  • improved layout caching: added cache validation step which checks if container size changed or cache was marked for reset;
  • implemented container spacing calculation.

Fixed:

  • subview dimension and size now calculated for the proposed container size, instead of unspecified;
  • fixed line height calculation, now a member property instead of computed.

1.0.0

26 Feb 19:42
Compare
Choose a tag to compare

Initial release features:

  • Layout implementation;
  • Lines alignment and spacing options;
  • Items alignment and spacing options;
  • Line-breaks on demand;
  • Line stretching;
  • Reverse items order in line;
  • Dynamic per-line styling.