---
title: "init(_:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uicolor/init(_:)"
---

# init(_:)

Creates a color object that encapsulates a SwiftUI color.

## Declaration

```swift
convenience init(_ color: Color)
```

## Parameters

- `color`: The initial color value, which can belong to any available color space.

## See Also

### Creating a color from another color object

- [init(ciColor:)](uikit/uicolor/init(cicolor:)-2z057.md)
- [init(cgColor:)](uikit/uicolor/init(cgcolor:)-27r9g.md)
- [withAlphaComponent(_:)](uikit/uicolor/withalphacomponent(_:).md)
