convertToLayer(_:)
Convert the size from the view’s interior coordinate system to the layer’s interior coordinate system.
Declaration
func convertToLayer(_ point: NSPoint) -> NSPointParameters
- point:
A point in the view’s interior coordinate system.
Return Value
A point in the view’s layer interior coordinate system.
Discussion
The layer’s space is virtual, and doesn’t take into account the layer’s contentsScale setting.