Returns the size of the text in `proposal`. The provided `text`
proxy value may be used to query the sizing behavior of the
underlying text layout.
The default implementation of this function returns
`text.size(proposal)`.
get · iOS 18.0+
displayPadding
Swift declaration
@export(implementation) var displayPadding: EdgeInsets { get }
Returns the size of the extra padding added to any drawing
layer used to rasterize the text. For example when drawing the
text with a shadow this may be used to extend the drawing
bounds to avoid clipping the shadow.
The default implementation of this function returns an empty
set of insets.