comparison Simoleon/Helpers/ListModifier.swift @ 166:e4cbb1eea394

Implement FavoritesView
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sat, 11 Sep 2021 16:30:32 +0200
parents 8afba86ab8dd
children
comparison
equal deleted inserted replaced
165:6f024e6a3b19 166:e4cbb1eea394
9 9
10 struct ListModifier: ViewModifier { 10 struct ListModifier: ViewModifier {
11 func body(content: Content) -> some View { 11 func body(content: Content) -> some View {
12 content 12 content
13 .id(UUID()) 13 .id(UUID())
14 .listStyle(PlainListStyle()) 14 .listStyle(InsetGroupedListStyle())
15 .gesture( 15 .gesture(
16 DragGesture() 16 DragGesture()
17 .onChanged({ _ in 17 .onChanged({ _ in
18 UIApplication.shared.dismissKeyboard() 18 UIApplication.shared.dismissKeyboard()
19 }) 19 })