From bf138927d904511b773b629a8b2c7bc050140755 Mon Sep 17 00:00:00 2001 From: Connor Cimowsky Date: Mon, 12 Sep 2022 15:40:11 -0700 Subject: [PATCH] Update documentation for `LayoutDescription` and `ListProperties` to use new padding API --- ListableUI/Sources/Layout/ListLayout/LayoutDescription.swift | 2 +- ListableUI/Sources/ListProperties.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ListableUI/Sources/Layout/ListLayout/LayoutDescription.swift b/ListableUI/Sources/Layout/ListLayout/LayoutDescription.swift index 65ac0dd63..35d4c7acc 100644 --- a/ListableUI/Sources/Layout/ListLayout/LayoutDescription.swift +++ b/ListableUI/Sources/Layout/ListLayout/LayoutDescription.swift @@ -20,7 +20,7 @@ import Foundation /// listView.layout = .table { /// $0.stickySectionHeaders = true /// -/// $0.layout.padding = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10) +/// $0.bounds = .init(padding: UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)) /// $0.layout.itemSpacing = 10.0 /// } /// ``` diff --git a/ListableUI/Sources/ListProperties.swift b/ListableUI/Sources/ListProperties.swift index b0c4e9493..27220c4de 100644 --- a/ListableUI/Sources/ListProperties.swift +++ b/ListableUI/Sources/ListProperties.swift @@ -83,7 +83,7 @@ import UIKit /// list.layout = .table { /// $0.stickySectionHeaders = true /// - /// $0.layout.padding = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10) + /// $0.bounds = .init(padding: UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)) /// $0.layout.itemSpacing = 10.0 /// } /// ```