Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tevelee committed Apr 30, 2024
1 parent 485ec9a commit 4a49e00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/FlowTests/FlowTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ final class FlowTests: XCTestCase {
}
}

@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
private extension FlowLayout {
func layout(_ views: [CGSize], in bounds: CGSize) -> (subviews: [TestSubview], size: CGSize) {
let subviews = views.map { TestSubview(width: $0.width, height: $0.height) }
Expand All @@ -201,6 +202,7 @@ private extension FlowLayout {
}
}

@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
private func render(_ layout: (subviews: [TestSubview], size: CGSize), border: Bool = true) -> String {
struct Point: Hashable {
let x, y: Int
Expand Down

0 comments on commit 4a49e00

Please sign in to comment.