Skip to content

Commit

Permalink
Replace size with square in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-garricnahapetian committed Jan 27, 2024
1 parent 8659841 commit 8ffe1e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Sources/Layout/Layout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public final class Layout { // swiftlint:disable:this type_body_length
/// ```swift
/// view.layout {
/// siblingView
/// .size(width: 100, height: 100)
/// .square(100)
/// .center()
/// label
/// .center(.vertical)
Expand Down Expand Up @@ -510,7 +510,7 @@ public final class Layout { // swiftlint:disable:this type_body_length
/// ```swift
/// view.layout {
/// siblingView
/// .size(width: 100, height: 100)
/// .square(100)
/// .center()
/// label
/// .center(.horizontal)
Expand Down
4 changes: 2 additions & 2 deletions Sources/Layout/LayoutItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ extension LayoutItem {
/// ```swift
/// view.layout {
/// siblingView
/// .size(width: 100, height: 100)
/// .square(100)
/// .center()
/// label
/// .center(.vertical)
Expand Down Expand Up @@ -364,7 +364,7 @@ extension LayoutItem {
/// ```swift
/// view.layout {
/// siblingView
/// .size(width: 100, height: 100)
/// .square(100)
/// .center()
/// label
/// .center(.horizontal)
Expand Down
8 changes: 4 additions & 4 deletions Tests/LayoutTests/LayoutExampleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ final class LayoutExampleTests: XCTestCase {
assertLayout { view in
view.layout {
siblingView
.size(width: 100, height: 100)
.square(100)
.center()
label
.center(.vertical)
Expand All @@ -159,7 +159,7 @@ final class LayoutExampleTests: XCTestCase {
assertLayout { view in
view.layout {
siblingView
.size(width: 100, height: 100)
.square(100)
.center()
label
.center(.horizontal)
Expand Down Expand Up @@ -218,7 +218,7 @@ final class LayoutExampleTests: XCTestCase {
assertLayout { view in
view.layout {
siblingView
.size(width: 100, height: 100)
.square(100)
.center()
label
.center(.vertical)
Expand All @@ -245,7 +245,7 @@ final class LayoutExampleTests: XCTestCase {
assertLayout { view in
view.layout {
siblingView
.size(width: 100, height: 100)
.square(100)
.center()
label
.center(.horizontal)
Expand Down

0 comments on commit 8ffe1e4

Please sign in to comment.