79770216

Date: 2025-09-20 09:55:23
Score: 1.5
Natty:
Report link

Is there a special reason you need this to be inside of a Toolbar? Any button resizing done appears to be overridden once placed inside of it, similar to how List takes certain liberties with many objects. You can maintain the .glassProminent effect and custom buttonWidth by not using Toolbar{}.

enter image description here

@available( iOS 26.0 , * )
struct DemoView: View {
  var body: some View {
    Color.black
      .ignoresSafeArea()
      .overlay ( alignment: .bottom ) { self.button }
      .labelStyle  ( .iconOnly )
      .buttonStyle ( .glassProminent )
      .font ( .largeTitle ) // resizes icon
  }
        
  var button: some View {
    Button { print ( "Hello" ) }
    label: {
      Label ( "Person" , systemImage: "person" )
        .frame ( maxWidth: .infinity )
     }
     .padding ( .horizontal , 20 )
   }
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (0.5):
Posted by: Tim