FlexLayout adds a nice Swift interface to the highly optimized facebook/yoga flexbox implementation. Concise, intuitive & chainable syntax.
Added by OhKanghoon in Pull Request #245
Background
Contents
FlexLayout.h
to public header directoryAdded by OhKanghoon in Pull Request #244
Gap
supportAdd Gap
methods:
columnGap(_ value: CGFloat) -> Flex
rowGap(_ value: CGFloat) -> Flex
gap(_ value: CGFloat) -> Flex
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
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()
FLEXLAYOUT_SWIFT_PACKAGE
flagFLEXLAYOUT_SWIFT_PACKAGE
Added by OhKanghoon in Pull Request #232
Split the Example project in 2 projects:
FlexLayoutSample
: Use cocoapods dependency managerFlexLayoutSample-SPM
: Use SPM (Swift Packager Manager) dependency managerAdded by OhKanghoon in Pull Request #230
FlexLayout version has been increased to reflect the new Yoga core version.
Added by OhKanghoon in Pull Request #230
// 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
Added by Dongkyu Kim in Pull Request #225
Added by Rachik Abidi in Pull Request #223
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