inset(by:edges:)
Returns an inset that has been modified by the corner sizes in the specified edges. When two corner insets diverge in their values for the specified edge, the maximum inset value will be used. For example, when the top edge is specified, the top inset will be adjusted by the larger of the two heights from the top leading and trailing corner inset sizes.
Declaration
func inset(by corners: RectangleCornerInsets, edges: Edge.Set = .all) -> EdgeInsetsParameters
- corners:
The corner sizes to add to the insets.
- edges:
The set of corner edges which should be added to the insets.