view Simoleon/Helpers/ListModifier.swift @ 171:70f0625bfcf1

Merge pull request #17 from denniscm190/development open source project committer: GitHub <noreply@github.com>
author Dennis C. M. <dennis@denniscm.com>
date Tue, 12 Oct 2021 16:17:35 +0200
parents e4cbb1eea394
children
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(InsetGroupedListStyle())
                .gesture(
                    DragGesture()
                            .onChanged({ _ in
                                UIApplication.shared.dismissKeyboard()
                        })
                )
        }
}