contentsRect(for:)
Returns the rectangle, in unit coordinate space, that contains the image within the view.
Declaration
@MainActor func contentsRect(for overlayView: ImageAnalysisOverlayView) -> CGRectParameters
- overlayView:
The associated overlay view for the contents rectangle.
Return Value
The rectangle of the image within the view, in unit coordinates. The default return value is the unit rectangle [0.0, 0.0, 1.0, 1.0], which represents the whole view contents.
Discussion
Implement this method if the trackingImageView type isn’t NSImageView.