---
title: ImageCreator.Error.backgroundCreationForbidden
framework: imageplayground
role: symbol
role_heading: Case
path: imageplayground/imagecreator/error/backgroundcreationforbidden
---

# ImageCreator.Error.backgroundCreationForbidden

An error that indicates the app is hidden or in the background.

## Declaration

```swift
case backgroundCreationForbidden
```

## Discussion

Discussion Apps must perform image creation only when running in the foreground.

## See Also

### Getting the error codes

- [ImageCreator.Error.notSupported](imageplayground/imagecreator/error/notsupported.md)
- [ImageCreator.Error.unavailable](imageplayground/imagecreator/error/unavailable.md)
- [ImageCreator.Error.creationCancelled](imageplayground/imagecreator/error/creationcancelled.md)
- [ImageCreator.Error.faceInImageTooSmall](imageplayground/imagecreator/error/faceinimagetoosmall.md)
- [ImageCreator.Error.unsupportedLanguage](imageplayground/imagecreator/error/unsupportedlanguage.md)
- [ImageCreator.Error.unsupportedInputImage](imageplayground/imagecreator/error/unsupportedinputimage.md)
- [ImageCreator.Error.creationFailed](imageplayground/imagecreator/error/creationfailed.md)
