scaleEffect(_:anchor:)
Scales this view’s rendered output by the given vertical and horizontal size amounts, relative to an anchor point.
Declaration
nonisolated func scaleEffect(_ scale: CGSize, anchor: UnitPoint = .center) -> some View
Parameters
Discussion
Use scaleEffect(_:anchor:) to scale a view by applying a scaling transform of a specific size, specified by scale.
Image(systemName: "envelope.badge.fill")
.resizable()
.frame(width: 100, height: 100, alignment: .center)
.foregroundColor(Color.red)
.scaleEffect(CGSize(x: 0.9, y: 1.3), anchor: .leading)
.border(Color.gray)[Image]