diff --git a/Sources/Layout/Layout.swift b/Sources/Layout/Layout.swift index e9372417..347d423e 100644 --- a/Sources/Layout/Layout.swift +++ b/Sources/Layout/Layout.swift @@ -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) @@ -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) diff --git a/Sources/Layout/LayoutItem.swift b/Sources/Layout/LayoutItem.swift index 6dcdc4e0..29466f9b 100644 --- a/Sources/Layout/LayoutItem.swift +++ b/Sources/Layout/LayoutItem.swift @@ -306,7 +306,7 @@ extension LayoutItem { /// ```swift /// view.layout { /// siblingView - /// .size(width: 100, height: 100) + /// .square(100) /// .center() /// label /// .center(.vertical) @@ -364,7 +364,7 @@ extension LayoutItem { /// ```swift /// view.layout { /// siblingView - /// .size(width: 100, height: 100) + /// .square(100) /// .center() /// label /// .center(.horizontal) diff --git a/Tests/LayoutTests/LayoutExampleTests.swift b/Tests/LayoutTests/LayoutExampleTests.swift index ab4b2d37..b883990d 100644 --- a/Tests/LayoutTests/LayoutExampleTests.swift +++ b/Tests/LayoutTests/LayoutExampleTests.swift @@ -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) @@ -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) @@ -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) @@ -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)