From 7ca9f8a3f75737feb0c94e543a412b8e0e2261ed Mon Sep 17 00:00:00 2001 From: Garric Nahapetian Date: Wed, 1 Nov 2023 12:58:29 -0700 Subject: [PATCH] Add comments --- Tests/LayoutTests/LayoutItemTests.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tests/LayoutTests/LayoutItemTests.swift b/Tests/LayoutTests/LayoutItemTests.swift index cc94c4a9..bfc6a82d 100644 --- a/Tests/LayoutTests/LayoutItemTests.swift +++ b/Tests/LayoutTests/LayoutItemTests.swift @@ -767,9 +767,15 @@ final class LayoutItemTests: XCTestCase { func testToSafeAreaWithTopLeadingBottomTrailingPriority() { assertLayout { view in view.layout { + + // To Safe Area with Top, Leading, Bottom, Trailing, and Default Priority + pinkView .toSafeArea(top: 10, leading: 20, bottom: 30, trailing: 40, priority: .high) .toSafeArea(top: 40, leading: 30, bottom: 20, trailing: 10) + + // To Safe Area with Top, Leading, Bottom, Trailing, and Priority + blueView .toSafeArea(top: 10, leading: 20, bottom: 30, trailing: 40, priority: .low) .toSafeArea(top: 50, leading: 40, bottom: 30, trailing: 20, priority: .high)