It doesn't mean the padding modifier should always place at the very beginning. It just depends on your button design.
Text("Hello World")
.foregroundColor(.purple)
.font(.title)
.padding()
.border(Color.puple, width: 5)
draw a border and overlay it on the button
Text("Hello World")
.fontWeight(.bold)
.font(.title)
.padding()
.background(Color.purple)
.cornerRadius(40)
.foregroundColor(.white)
.padding(10)
.overlay(
RoundedRectangle(cornerRadius: 40)
.stroke(Color.purple, lineWith: 5)
)