I have made a button style to be used throughout my app but I can't find a way to accomplish this with text so I end up having to add the .font stuff manually every time. I was wondering if there is a way to set it so I can have a consistent way to style text. Here is the code I use to set my button style.
struct mainPageButtonStyle: ButtonStyle {
func makeBody(configuration: Configuration) -> some View {
configuration.label
.frame(width: 200, height: 60, alignment: .center)
.overlay(RoundedRectangle(cornerRadius: 25)
.stroke(Color(colorManager.secondaryGreen), lineWidth: 8)
)
.padding(.all, 20)
}
}