Home > AI > IOS > SwiftUI >

.offset

Summary: Offset this view by the horizontal and vertical amount specified in the offset parameter.

Text("Offset by passing CGSize()")
            .border(Color.green)
            .offset(CGSize(width: 20, height: 25))
            .border(Color.gray)

Leave a Reply