Using buttonSizing(.flexible) instead of .frame(maxWidth: .infinity) has no effect :
The button does not get full-width.
Applying .frame(maxWidth: .infinity) to the Text instead of the Button has no effect either :
The button does not get full-width.
The issue can be simply reproduced through the provided code example.
Notice that the button is required to be prominent (see role: .confirm in the code example).
Is there any workaround ?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: