Creates two rectangles by dividing the original rectangle.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Xcode 7.1+
- Core Graphics
A distance from the rectangle side specified in the
fromparameter, defining the line along which to divide the rectangle.
The side of the rectangle from which to measure the
atparameter, defining the line along which to divide the rectangle.
A tuple containing two rectangles:
slice: The component rectangle nearest the edge of the original rectangle specified in the
from parameter, with width equal to the
remainder: The component rectangle equal to the remaining area of the original rectangle not included in the
at parameters define a line (parallel to the specified edge of the rectangle and at the specified distance from that edge) that divides the rectangle into two component rectangles.