Hi,
I would like to ask how to change fontWeight of a button label within ButtonStyle. However I can't figure it how to do it.
This is my code:
struct CapsuleButtonStyle: ButtonStyle {
func makeBody(configuration: Self.Configuration) -> some View {
configuration.label
.font(.footnote)
.fontWeight(.bold) /* All modifiers work except this one*/
.foregroundColor(.white)
.padding(.horizontal, 11)
.padding(.vertical, 6)
.background(Color.blue)
.cornerRadius(.infinity)
}
}
Thanks for your help
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Does anyone know if there is going to be support for ADE/DEP enrolled devices to leverage the new declarative management?