sourceRect
A rectangle that specifies that the screenshot only samples a subset of the frame input.
Declaration
var sourceRect: CGRect { get set }Discussion
If not set, the screenshot captures the entire frame. Specify the rectangle in points in the display’s logical coordinate system.