Skip to content

Commit

Permalink
Update yoga to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
v authored and v committed Mar 28, 2024
1 parent d12f736 commit be0b9af
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 25 deletions.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repositoryURL": "https://github.com/facebook/yoga.git",
"state": {
"branch": "main",
"revision": "a8566a01503e283f2e06fdcb12b80603035aadb1",
"revision": "f12d43631444420667004ca025d3d4071d76a694",
"version": null
}
}
Expand Down
5 changes: 0 additions & 5 deletions Sources/SwiftYoga/YGConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,11 @@ extension YGConfig {
features.insert(.webFlexBasis)
}

if YGConfigIsExperimentalFeatureEnabled(configRef, .absolutePercentageAgainstPaddingEdge) {
features.insert(.absolutePercentageAgainstPaddingEdge)
}

return features
}

set {
YGConfigSetExperimentalFeatureEnabled(configRef, .webFlexBasis, newValue.contains(.webFlexBasis))
YGConfigSetExperimentalFeatureEnabled(configRef, .absolutePercentageAgainstPaddingEdge, newValue.contains(.absolutePercentageAgainstPaddingEdge))
}
}

Expand Down
4 changes: 0 additions & 4 deletions Sources/SwiftYoga/YGNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,6 @@ extension YGNode {
YGNodeMarkDirty(nodeRef)
}

public func markDirtyAndPropagateToDescendants() {
YGNodeMarkDirtyAndPropagateToDescendants(nodeRef)
}

public var isDirty: Bool {
YGNodeIsDirty(nodeRef)
}
Expand Down
11 changes: 0 additions & 11 deletions Sources/SwiftYoga/YGStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ extension YGErrata {
extension YGExperimentalFeature: OptionSet {

public static let webFlexBasis = YGExperimentalFeatureWebFlexBasis

public static let absolutePercentageAgainstPaddingEdge = YGExperimentalFeatureAbsolutePercentageAgainstPaddingEdge
}

extension YGFlexDirection {
Expand Down Expand Up @@ -183,15 +181,6 @@ extension YGPositionType {
public static let absolute = YGPositionTypeAbsolute
}

extension YGPrintOptions: OptionSet {

public static let layout = YGPrintOptionsLayout

public static let style = YGPrintOptionsStyle

public static let children = YGPrintOptionsChildren
}

extension YGUnit {

public static let undefined = YGUnitUndefined
Expand Down
8 changes: 4 additions & 4 deletions Tests/SwiftYogaTests/SwiftYogaTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ final class SwiftYogaTests: XCTestCase {

root.calculateLayout(width: YGUndefined, height: YGUndefined)

XCTAssertEqual(leaf.layout.left, 0)
XCTAssertEqual(leaf.layout.top, 0)
XCTAssertEqual(leaf.layout.width, 180)
XCTAssertEqual(leaf.layout.height, 180)
XCTAssertEqual(leaf.layout.left, 20)
XCTAssertEqual(leaf.layout.top, 20)
XCTAssertEqual(leaf.layout.width, 200)
XCTAssertEqual(leaf.layout.height, 200)
}
}

0 comments on commit be0b9af

Please sign in to comment.