Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-garricnahapetian committed Nov 1, 2023
1 parent b53cadf commit 7ca9f8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/LayoutTests/LayoutItemTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ca9f8a

Please sign in to comment.