struct ContentView: View {
@State private var newSetState = true
var body: some View {
VStack {
if self.newSetState || !self.newSetState {
HStack {
Text( ...
Text( ...
}.font(.largeTitle).lineLimit(1).fixedSize()
HStack {
Text( ...
Text( ...
Text( ...
}.font(.largeTitle).lineLimit(1).fixedSize()
Button("emoji", action: { self.newSetState.toggle() } )
.font(.largeTitle)
.frame(width: 36, height: 86, alignment: .center)
}
} .padding([.top, .leading, .trailing])
.frame(width: 280, height: 280, alignment: .center)
}
}
I'm guessing my previous post was kicked because of the emoji symbol.
The issue remains: Button() does not respond to the frame() method, as all my other views do. Indeed, if I create a Text() view, .font(.largeTitle) is sufficient to "grow" the view. The VStack{} responds to .frame() adjustments.
The result of the above code produces the emoji in .largeTitle format but its top is cropped even though it is well inside the frame. The shadowed button behind it is shorter and wider and itself only accepts taps. That is to say, the copped emoji extends above the button in its background but is cropped well below the frame bounds.
I am currently attempting to code a substitute Button() of my own until Apple can correct this. ;-)