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.
39 lines
1.1 KiB
39 lines
1.1 KiB
//
|
|
// ParticipateButton.swift
|
|
// AllIn
|
|
//
|
|
// Created by Lucas Delanier on 15/01/2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ParticipateButton: View {
|
|
@Binding var isOpen : Bool
|
|
var body: some View {
|
|
Button {
|
|
isOpen.toggle()
|
|
} label: {
|
|
Text("Participer")
|
|
.font(.system(size: 30))
|
|
.fontWeight(.bold)
|
|
.frame(maxWidth: .infinity).padding(10)
|
|
.multilineTextAlignment(.center)
|
|
.overlay {
|
|
AllInColors.primaryGradient.frame(width: 170)
|
|
.mask(
|
|
Text("Participer")
|
|
.font(.system(size: 30))
|
|
.fontWeight(.bold)
|
|
.frame(maxWidth: .infinity).padding(10)
|
|
)
|
|
}
|
|
}
|
|
.accentColor(AllInColors.componentBackgroundColor)
|
|
.buttonStyle(.borderedProminent).cornerRadius(4.0)
|
|
.overlay(
|
|
RoundedRectangle(cornerRadius: 12).stroke(AllInColors.delimiterGrey, lineWidth: 1)
|
|
)
|
|
|
|
}
|
|
}
|