You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
PadelClub/PadelClub/Views/Components/FooterButtonView.swift

28 lines
512 B

//
// FooterButtonView.swift
// PadelClub
//
// Created by Razmig Sarkissian on 18/04/2024.
//
import SwiftUI
struct FooterButtonView: View {
let title: String
let action: () -> ()
init(_ title: String, action: @escaping () -> Void) {
self.title = title
self.action = action
}
var body: some View {
Button {
action()
} label: {
Text(title)
.underline()
}
.buttonStyle(.borderless)
}
}