Mercurial > public > simoleon
view Simoleon/Helpers/ListModifier.swift @ 152:2584fd74235a
Add new currencies
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 23 Aug 2021 17:14:14 +0100 |
parents | 1069c33d3a42 |
children | 8afba86ab8dd |
line wrap: on
line source
// // ListModifier.swift // Simoleon // // Created by Dennis Concepción Martín on 31/7/21. // import SwiftUI struct ListModifier: ViewModifier { func body(content: Content) -> some View { content .id(UUID()) .listStyle(PlainListStyle()) .gesture(DragGesture() .onChanged({ _ in UIApplication.shared.dismissKeyboard() }) ) } }