.offset()
// ????.??.?? + method: .offset(x,y)
// 2022.02.09 + method: .offset(cgPoint)
import SwiftUI
extension View {
/// usage: `view.offset(x, y)`
public func offset(_ x: CGFloat, _ y: CGFloat) -> some View {
self.offset(x: x, y: y)
}
/// usage: `view.offset(cgPoint)`
public func offset(_ point: CGPoint) -> some View {
offset(x: point.x, y: point.y)
}
}
Last updated