Skip to main content
←API Reference

applyingAffineTransform


Declaration​

func applyingAffineTransform(containerSize: CGSize, viewSize: CGSize, transform: CGAffineTransform) -> CGRect

Summary​

Transforms a rectangle from the container coordinate space to view by applying
a given affine transform to its corner points.

Returns​

A new rectangle transformed into the view coordinate space.

Parameters​

NameTypeSummary
containerSizeCGSize
The size of the original container coordinate space.
viewSizeCGSize
The size of the target view coordinate space.
transformCGAffineTransform
The affine transform to apply (expected to operate on normalized coordinates).