---
title: "init(onePieceImage:)"
framework: clockkit
role: symbol
role_heading: Initializer
path: "clockkit/clkimageprovider/init(onepieceimage:)"
---

# init(onePieceImage:)

Creates and returns an image provider with the specified one-piece image.

## Declaration

```swift
convenience init(onePieceImage: UIImage)
```

## Parameters

- `onePieceImage`: The image to display. The image must be a template image, where only the alpha channel is used to define the image contents. This parameter must not be nil.

## Return Value

Return Value An image provider with only the one-piece image.

## Discussion

Discussion Use this method to create an image provider with only a one-piece image. The resulting image provider displays the one-piece image in all contexts. After creating the image provider, you can customize the tint color applied to your image by modifying the tintColor property.

## See Also

### Creating an Image Provider

- [init(onePieceImage:twoPieceImageBackground:twoPieceImageForeground:)](clockkit/clkimageprovider/init(onepieceimage:twopieceimagebackground:twopieceimageforeground:).md)
