Skip to content

Releases: layoutBox/FlexLayout

Add `Gap` support + Fix "Child already has a owner" Assert

11 Jan 13:41

Choose a tag to compare

1) Add Gap support

Add Gap methods:

  • columnGap(_ value: CGFloat) -> Flex
  • rowGap(_ value: CGFloat) -> Flex
  • gap(_ value: CGFloat) -> Flex
background

After Yoga layout updated to 2.0.0 the gap func added. and as needed by this issue and my company's product, me and my partner @TaekH made feature to use. 🙇‍♂️

Added by Buseong Kim in Pull Request #241

2) Fix "Child already has a owner" Assert

Upgrading to the latest version of Yoga introduced an assert in YGNodeInsertChild() that was previously removed accidentally (see relevant commit). This assert will throw an error if the node we are trying to add already has an owner. Unfortunately, we can fall into this case quite easily if we move a view between different superviews (as demonstrated in the following contrived example).

Restoring the changes from this old commit c303faa should ensure that any lingering parent references are cleaned up before we call YGNodeInsertChild()

Added by kennethpu in Pull Request #242

Enhance Swift Package experience + Examples update

06 Jan 18:47

Choose a tag to compare

Enhance Swift Package experience

  • Change the Swift Package Manager to be available without FLEXLAYOUT_SWIFT_PACKAGE flag
  • add public header path
  • remove FLEXLAYOUT_SWIFT_PACKAGE
  • remove library for internal (FlexLayoutYoga, FlexLayoutYogaKit)
  • move the unit test to the swift package with XCTest

Added by OhKanghoon in Pull Request #232

Split the Example project in 2 projects (Cocoapods & SPM)

Split the Example project in 2 projects:

  • FlexLayoutSample: Use cocoapods dependency manager
  • FlexLayoutSample-SPM: Use SPM (Swift Packager Manager) dependency manager

Added by Luc Dion in Pull Request #240

Fix the crash that occurs when the node's topLeft position is nan

15 Oct 14:35

Choose a tag to compare

Update Yoga core to 2.0

01 Oct 19:45

Choose a tag to compare

FlexLayout version has been increased to reflect the new Yoga core version.

Added by OhKanghoon in Pull Request #230

Resolve lldb debug issue when using CocoaPods

24 Jun 19:34

Choose a tag to compare

Background

  • Since #219 was merged, LLDB problems have occurred in environments where CocoaPods and SPM are used together.
  • This reverts commit f36c766. (#219)

Changes

  • Revert f36c766 commit to resolve
  • The existing problem is solved by writing each package.swift like the code below
// in Package.swift
.target(
  name: "SomeTarget",
  dependencies: [
    "FlexLayout",
  ],
  cSettings: [
    .define("FLEXLAYOUT_SWIFT_PACKAGE"),
  ],
  cxxSettings: [
    .define("FLEXLAYOUT_SWIFT_PACKAGE"),
  ],
  swiftSettings: [
    .define("FLEXLAYOUT_SWIFT_PACKAGE"),
  ]
)

Added by OhKanghoon in Pull Request #226

Fixes an issue where YGApplyLayoutToViewHierarchy assigns a value to frame.size that does not rounded to the pixel grid

10 May 12:30

Choose a tag to compare

Fix for Swift 5.8

12 Apr 22:44

Choose a tag to compare

Added by Rachik Abidi in Pull Request #223

Fixes issue while including FlexLayout as a dependency of another Swift Package

11 Mar 14:16

Choose a tag to compare

Fixes issue #219 where including FlexLayout as a dependency of another swift package would fail to build - because it isn't possible to set the preprocessor definition FLEXLAYOUT_SWIFT_PACKAGE without an Xcode project.

Added by Luke Wakeford in Pull Request #221

Add `border(_ width: CGFloat, _ color: UIColor)`

28 Feb 14:16

Choose a tag to compare

Add `Flex.direction` property

25 Feb 23:26
ed5707f

Choose a tag to compare

Added by gyuchan in Pull Request #213