File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Sources/SwiftUIKit/Views/Form Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public extension FormText where TrailingView == EmptyView {
71
71
private extension FormText {
72
72
73
73
var stack : some View {
74
- HStack ( spacing: 10 ) {
74
+ HStack ( spacing: 10 ) {
75
75
VStack ( alignment: . leading, spacing: 5 ) {
76
76
Text ( title. lowercased ( ) )
77
77
. font ( . footnote)
@@ -89,6 +89,8 @@ private extension FormText {
89
89
90
90
struct FormText_Previews : PreviewProvider {
91
91
92
+ static var action : ( ( ) -> Void ) = { }
93
+
92
94
static var previews : some View {
93
95
List {
94
96
FormText (
@@ -97,9 +99,7 @@ struct FormText_Previews: PreviewProvider {
97
99
FormText (
98
100
title: " Title 2 " ,
99
101
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 " ) } )
103
103
}
104
104
FormText (
105
105
title: " Title 3 " ,
You can’t perform that action at this time.
0 commit comments