Skip to content

Commit

Permalink
Removed LayoutDirectionBehavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tevelee committed Apr 30, 2024
1 parent 051ef1d commit 5da6e12
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions Sources/Flow/Internal/HFlowLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,4 @@ extension HFlowLayout: Layout {
properties.stackOrientation = .horizontal
return properties
}

@available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
public var layoutDirectionBehavior: LayoutDirectionBehavior {
layout.layoutDirectionBehavior
}
}
5 changes: 0 additions & 5 deletions Sources/Flow/Internal/Layout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,6 @@ extension FlowLayout: Layout {
cache: inout ()) {
placeSubviews(in: bounds, proposal: proposal, subviews: subviews)
}

@available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
var layoutDirectionBehavior: LayoutDirectionBehavior {
.mirrors(in: .rightToLeft)
}
}

private extension CGRect {
Expand Down
5 changes: 0 additions & 5 deletions Sources/Flow/Internal/VFlowLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,4 @@ extension VFlowLayout: Layout {
properties.stackOrientation = .vertical
return properties
}

@available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
public var layoutDirectionBehavior: LayoutDirectionBehavior {
layout.layoutDirectionBehavior
}
}

0 comments on commit 5da6e12

Please sign in to comment.