Skip to content

Commit 92f3cd0

Browse files
committed
Fix SwiftLint errors
1 parent e8b6cd5 commit 92f3cd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SwiftUIKit/Views/Form/FormText.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public extension FormText where TrailingView == EmptyView {
7171
private extension FormText {
7272

7373
var stack: some View {
74-
HStack(spacing: 10) {
74+
HStack(spacing: 10) {
7575
VStack(alignment: .leading, spacing: 5) {
7676
Text(title.lowercased())
7777
.font(.footnote)
@@ -89,6 +89,8 @@ private extension FormText {
8989

9090
struct FormText_Previews: PreviewProvider {
9191

92+
static var action: (() -> Void) = {}
93+
9294
static var previews: some View {
9395
List {
9496
FormText(
@@ -97,9 +99,7 @@ struct FormText_Previews: PreviewProvider {
9799
FormText(
98100
title: "Title 2",
99101
text: "A looong text value with a trailing view.") {
100-
Button(action: {}) {
101-
Image(systemName: "doc.on.doc")
102-
}
102+
Button(action: {}, label: { Image(systemName: "doc.on.doc") })
103103
}
104104
FormText(
105105
title: "Title 3",

0 commit comments

Comments
 (0)