From a9270392b3269ef072c47dea623815a9fb87311d Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:49:42 +0100 Subject: [PATCH] Add a SecureField kind to ListRow (#105) --- Sources/Compound/List/ListRow.swift | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/Sources/Compound/List/ListRow.swift b/Sources/Compound/List/ListRow.swift index 8e18d32..734571a 100644 --- a/Sources/Compound/List/ListRow.swift +++ b/Sources/Compound/List/ListRow.swift @@ -23,6 +23,11 @@ public enum ListRowPadding { leading: horizontal, bottom: vertical, trailing: horizontal) + + public static let textFieldInsets = EdgeInsets(top: 11, + leading: horizontal, + bottom: 11, + trailing: horizontal) } public struct ListRow: View { @@ -41,6 +46,7 @@ public struct ListRow Void) case multiSelection(isSelected: Bool, action: () -> Void) case textField(text: Binding, axis: Axis?) + case secureField(text: Binding) case custom(() -> CustomContent) @@ -119,10 +125,15 @@ public struct ListRow