The thickness of the border.
境界線の太さ。
The default is 1 pixel.
Discussion
議論
Use this modifier to draw a border of a specified width around the view’s frame. By default, the border appears inside the bounds of this view.
初期状態では、境界線はこのビューの境界の内側に現れます。
For example, you can add a four-point wide border covers the text:
Text("Purple border inside the view bounds.") .border(Color.purple, width: 4)
To place a border around the outside of this view, apply padding of the same width before adding the border:
境界線をこのビューの外側を囲むように置くには、同じ幅の詰め物を、境界線を加える前に適用してください。
Text("Purple border outside the view bounds.") .padding(4) .border(Color.purple, width: 4)