Return Value 戻り値
A view that offsets this view by offset
.
あるビュー、それはこのビューをoffset
だけ補ったものです。
Availability 有効性
Technology
A view that offsets this view by offset
.
あるビュー、それはこのビューをoffset
だけ補ったものです。
offset
The distance to offset this view. このビューを補う間隔。
Use offset(_:)
to shift the displayed contents by the amount specified in the offset
parameter.
The original dimensions of the view aren’t changed by offsetting the contents; in the example below the gray border drawn by this view surrounds the original position of the text:
Text("Offset by passing CGSize()")
.border(Color.green)
.offset(CGSize(width: 20, height: 25))
.border(Color.gray)