Mercurial > public > simoleon
view Simoleon/Helpers/ListModifier.swift @ 150:6eac99e99b96
Add error handling to read json function
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 19 Aug 2021 19:12:56 +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() }) ) } }