Mercurial > public > simoleon
view Simoleon/Helpers/ListModifier.swift @ 159:35628bac01f5
Fix a bug that selected wrong symbol in pair
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 28 Aug 2021 19:18:50 +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() }) ) } }