Offset
Offset
- offset is using to point out where the object should placed on X and Y axis.
ZStack{
Text("ZStack item 1")
.offset(x:20, y:-400)
}
- minus and positive values are implement reference to the ZStack position
ZStack{
Text("ZStack item 1")
.offset(x:20, y:-400)
}