withBaselineOffset(fromBottom:)
Creates a new image with a baseline at the specified offset from the bottom of the image.
Declaration
func withBaselineOffset(fromBottom baselineOffset: CGFloat) -> UIImageParameters
- baselineOffset:
The position of the baseline, relative to the bottom of the image. Specify this value in points, where positive values move the baseline up from the bottom of the image and negative values move the baseline down.
Mentioned in
Return Value
A new image object containing the baseline information.
Discussion
Use this method to create an image with the specified baseline information. You might add a baseline to your custom images so that you can incorporate them into text-based layouts. You can also use this method to change the baseline information on an image.
See Also
Changing the image attributes
withConfiguration(_:)applyingSymbolConfiguration(_:)imageFlippedForRightToLeftLayoutDirection()withHorizontallyFlippedOrientation()withRenderingMode(_:)withAlignmentRectInsets(_:)resizableImage(withCapInsets:)resizableImage(withCapInsets:resizingMode:)imageWithoutBaseline()UIImage.ConfigurationUIImage.SymbolConfiguration