comparison Simoleon/Helpers/ListModifier.swift @ 77:1069c33d3a42

Added new method to show unlocked content
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Sat, 31 Jul 2021 17:09:58 +0100
parents
children 8afba86ab8dd
comparison
equal deleted inserted replaced
76:1f657241c28f 77:1069c33d3a42
1 //
2 // ListModifier.swift
3 // Simoleon
4 //
5 // Created by Dennis Concepción Martín on 31/7/21.
6 //
7
8 import SwiftUI
9
10 struct ListModifier: ViewModifier {
11 func body(content: Content) -> some View {
12 content
13 .id(UUID())
14 .listStyle(PlainListStyle())
15 .gesture(DragGesture()
16 .onChanged({ _ in
17 UIApplication.shared.dismissKeyboard()
18 })
19 )
20 }
21 }