---
title: "withBaselineOffset(fromBottom:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiimage/withbaselineoffset(frombottom:)"
---

# withBaselineOffset(fromBottom:)

Creates a new image with a baseline at the specified offset from the bottom of the image.

## Declaration

```swift
func withBaselineOffset(fromBottom baselineOffset: CGFloat) -> UIImage
```

## Parameters

- `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

Configuring and displaying symbol images in your UI

## Return Value

Return Value A new image object containing the baseline information.

## Discussion

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(_:)](uikit/uiimage/withconfiguration(_:).md)
- [applyingSymbolConfiguration(_:)](uikit/uiimage/applyingsymbolconfiguration(_:).md)
- [imageFlippedForRightToLeftLayoutDirection()](uikit/uiimage/imageflippedforrighttoleftlayoutdirection().md)
- [withHorizontallyFlippedOrientation()](uikit/uiimage/withhorizontallyflippedorientation().md)
- [withRenderingMode(_:)](uikit/uiimage/withrenderingmode(_:).md)
- [withAlignmentRectInsets(_:)](uikit/uiimage/withalignmentrectinsets(_:).md)
- [resizableImage(withCapInsets:)](uikit/uiimage/resizableimage(withcapinsets:).md)
- [resizableImage(withCapInsets:resizingMode:)](uikit/uiimage/resizableimage(withcapinsets:resizingmode:).md)
- [imageWithoutBaseline()](uikit/uiimage/imagewithoutbaseline().md)
- [UIImage.Configuration](uikit/uiimage/configuration-swift.class.md)
- [UIImage.SymbolConfiguration](uikit/uiimage/symbolconfiguration-swift.class.md)
