Mercurial > public > simoleon
view Simoleon/Helpers/ListModifier.swift @ 162:f5de15e06c77
Refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 31 Aug 2021 13:04:28 +0100 |
parents | 8afba86ab8dd |
children | e4cbb1eea394 |
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() }) ) } }