Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Releases: LinkedInAttic/LayoutKit

Fixes for Objective-C wrappers.

05 Mar 17:54
Compare
Choose a tag to compare

Some fixes for the Objective-C wrappers:

  • For LOKReloadableViewLayoutAdapter, adding batch update support.
  • For LOKSizeLayout, adding a configure block parameter.
  • For LOKFlexibility, making its values public.
  • Making Objective-C API wrapper classes open for subclassing.

7.0.0 Adding Objective-C support.

15 Feb 20:40
Compare
Choose a tag to compare
Pre-release

Adding an Objective-C compatible API.

This API is in the new LayoutKitObjC pod and not in the pre-existing pod.

Also, adding a lineHeight parameter to LabelLayout to support custom line heights for line limit height calculation according to the numberOfLines parameter.

6.0.0

11 Oct 20:45
Compare
Choose a tag to compare
  • Swift 4 Migration
  • Use max size for measuring overlay sublayouts
  • Incremental update is changed to use chunking
  • Fix StackLayout fillEqualSpacing distribution with spacing
  • Fixing async issue on completion callback for perform batch updates
  • Fix to make custom view for UITableViewHeaderFooterView in its contentView
  • Allow isSelectable to be overridden in TextViewLayout Configure

5.0.0

19 Jul 01:37
Compare
Choose a tag to compare

Added TextViewLayout and OverlayLayout.

Swift 3.1 and Xcode 8.3 support.

Open ReloadableViewLayoutAdapter for extension.

Open ReloadableView and BatchUpdates for extension.

BatchUpdates becomes a class. (BatchUpdates changing from struct to class is technically a breaking change, hence the major version increment.)

4.0.2

31 Mar 21:39
Compare
Choose a tag to compare

Support for Swift 3.1.

LayoutAdapter's dispatch queue is now public.

4.0.1

12 Jan 19:32
Compare
Choose a tag to compare

View recycling no longer removes views that it didn't create (#85 @inamiy)

It is now possible to override registerViews on ReloadableView to use custom UICollectionViewCell/UITableViewCell with ReloadableViewLayoutAdapter (#86)

4.0.0

24 Nov 18:31
Compare
Choose a tag to compare

This release contains some new features and backward incompatible changes.

Features

  • New ButtonLayout for UIButton. Please read the class documentation before using.
  • Layouts now support views whose initializers require arguments (i.e. UIButton).
  • BatchUpdates now supports reloading sections and items (thanks @RoCry).

Backward incompatible changes

  • LabelLayoutTextType renamed to Text now that it is shared with ButtonLayout.
  • LabelLayout initializer parameter textType renamed to text.
  • needsView was moved from ConfigurableLayout to Layout.
  • func makeView(from recycler: ViewRecycler) -> View? changed to func makeView() -> View. LayoutKit now handles view recycling internally and only calls makeView() if needsView is true.
  • ViewRecycler is no longer public (it doesn't need to be anymore).

Behavior changes

  • A non-nil viewReuseId no longer forces a Layout to generate a view. If you want to force a Layout to generate a view when it otherwise wouldn't, provide a configuration block (which may be empty).
  • Subview order is now deterministic and matches what you would expect.

Other
LayoutKitExampleLayouts target renamed to ExampleLayouts so that it isn't inadvertently pulled in by Carthage. ExampleLayouts is for experimentation and not part of the supported or documented public API of LayoutKit.

3.1.0

26 Oct 00:21
Compare
Choose a tag to compare

StackView now has a removeArrangedSubviews() method (@dgattey #61)

3.0.1

18 Oct 21:56
Compare
Choose a tag to compare

Fix issue with generic parameter in InsetLayout's config block (@pgherveou #53)

3.0.0

19 Sep 22:17
Compare
Choose a tag to compare

Migrate to Swift 3 (#49)