<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIFilter-swift.class/bloom()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilter(cm)bloomFilter"
  },
  "title" : "bloom()"
}
-->

# bloom()

Adjusts an image’s colors by applying a blur effect.

```
class func bloom() -> any CIFilter & CIBloom
```

## Return Value

The modified image.

## Discussion

This method applies the bloom filter to an image. The effect softens edges and adds a slight blur effect.

The bloom filter uses the following properties:

- `inputImage`: An image with the type [`CIImage`](/documentation/CoreImage/CIImage).
- `radius`: A `float` representing the area of effect as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.
- `intensity`: A `float` representing the desired strength of the effect as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.

The following code creates a filter that results in a hazy effect on the image:

```swift
func bloom(inputImage: CIImage) -> CIImage {
    let bloomFilter = CIFilter.bloom()
    bloomFilter.inputImage = inputImage
    bloomFilter.radius = 10
    bloomFilter.intensity = 1
    return bloomFilter.outputImage!
}
```

![Two photographs of multiple sets of small purple flowers surrounded by other flowers and a blue sky. The photo on the left is clear and crisp. In the photo on the right, a bloom filter is applied and the image is brighter and looks slightly fuzzy or hazy.](images/com.apple.coreimage/media-3599995@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)