@@ -121,7 +121,6 @@ struct ExampleView: View {
121121 cell == range. first,
122122 hintOffset: 60
123123 )
124-
125124 . listRowInsets ( EdgeInsets ( ) )
126125 }
127126 }
@@ -160,9 +159,11 @@ struct ExampleView: View {
160159 . contentShape ( Rectangle ( ) )
161160 . padding ( )
162161 . background ( Color ( UIColor . systemBackground) )
163- . addFullSwipeAction ( menu: . slided,
164- swipeColor: . red,
165- state: $state) {
162+ . addFullSwipeAction (
163+ menu: . slided,
164+ swipeColor: . red,
165+ state: $state
166+ ) {
166167 Leading {
167168 Button {
168169 selectedAction = " cell \( cell) checked! "
@@ -278,12 +279,14 @@ struct ExampleView: View {
278279 }
279280 }
280281 . alert ( isPresented: $fullSwiped) {
281- Alert ( title: Text ( selectedAction) ,
282- dismissButton: . default( Text ( " Archived! " ) ) {
283- withAnimation {
284- state = . swiped( UUID ( ) )
282+ Alert (
283+ title: Text ( selectedAction) ,
284+ dismissButton: . default( Text ( " Archived! " ) ) {
285+ withAnimation {
286+ state = . swiped( UUID ( ) )
287+ }
285288 }
286- } )
289+ )
287290 }
288291 }
289292 }
@@ -316,8 +319,10 @@ struct ExampleView: View {
316319 )
317320 . contentShape ( Rectangle ( ) )
318321 . listStyle ( . plain)
319- . addSwipeAction ( menu: . swiped,
320- state: $state) {
322+ . addSwipeAction (
323+ menu: . swiped,
324+ state: $state
325+ ) {
321326 Leading {
322327 Button {
323328 print ( " check \( cell) " )
@@ -471,9 +476,8 @@ struct ExampleView: View {
471476 . contentShape ( Rectangle ( ) )
472477 . background ( Color . green)
473478 }
474- }
475- . listRowInsets ( EdgeInsets ( ) )
476- . hideSeparators ( )
479+ } . listRowInsets ( EdgeInsets ( ) )
480+ . hideSeparators ( )
477481 }
478482 . padding ( 16 )
479483 . listStyle ( . plain)
@@ -488,10 +492,11 @@ struct ExampleView: View {
488492 . padding ( . horizontal, 16 )
489493 . frame ( width: UIScreen . main. bounds. size. width - 32 , height: 80 )
490494 . background ( Color ( UIColor . systemBackground) )
491- . onTapGesture {
492- }
493- . addSwipeAction ( edge: . trailing,
494- state: $state) {
495+ . onTapGesture { }
496+ . addSwipeAction (
497+ edge: . trailing,
498+ state: $state
499+ ) {
495500 Button {
496501 print ( " remove " )
497502 } label: {
@@ -501,9 +506,8 @@ struct ExampleView: View {
501506 . frame ( width: 60 , height: 80 , alignment: . center)
502507 . contentShape ( Rectangle ( ) )
503508 . background ( Color . red)
504- }
505- . listRowInsets ( EdgeInsets ( ) )
506- . hideSeparators ( )
509+ } . listRowInsets ( EdgeInsets ( ) )
510+ . hideSeparators ( )
507511
508512 }
509513 . padding ( 16 )
@@ -583,9 +587,11 @@ struct ExampleView: View {
583587 . contentShape ( Rectangle ( ) )
584588 . padding ( )
585589 . background ( Color ( UIColor . systemBackground) )
586- . addFullSwipeAction ( menu: . slided,
587- swipeColor: . red,
588- state: $state) {
590+ . addFullSwipeAction (
591+ menu: . slided,
592+ swipeColor: . red,
593+ state: $state
594+ ) {
589595 Leading {
590596 Button {
591597 selectedAction = " cell \( cell) checked! "
0 commit comments