One Logo Pool Ball
ImagePlayground · IOS API REFERENCE

ImagePlaygroundStyle

struct · iOS 18.4+ · SDK 27.1

struct ImagePlaygroundStyle

Style options that determine the appearance of generated images. When you create images programmatically, you can ask the system to create images in a particular style. The generative model takes the requested style option and applies it to the content it generates.

Members (8)

get · iOS 18.4+

illustration

TypeScript
static get illustration(): ImagePlaygroundStyle
Swift declaration
static let illustration: ImagePlaygroundStyle

An option that yields images in a 2D cartoon style.

get · iOS 26.0+

externalProvider

TypeScript
static get externalProvider(): ImagePlaygroundStyle
Swift declaration
static let externalProvider: ImagePlaygroundStyle

An option that yields images in a style provided by an external provider

get · iOS 18.4+

id

TypeScript
get id(): string
Swift declaration
let id: String

A text-based description of the style option.

get · iOS 18.4+

all

TypeScript
static get all(): Array<ImagePlaygroundStyle>
Swift declaration
static var all: [ImagePlaygroundStyle] { get }

An option that allows the creation of images in any style.

get · iOS 27.0+

any

TypeScript
static get any(): ImagePlaygroundStyle
Swift declaration
static let any: ImagePlaygroundStyle

An option that yields images in a style inferred from the prompt.

get · iOS 18.4+

emoji

TypeScript
static get emoji(): ImagePlaygroundStyle
Swift declaration
static let emoji: ImagePlaygroundStyle

An option that yields images in an emoji style.

get · iOS 18.4+

sketch

TypeScript
static get sketch(): ImagePlaygroundStyle
Swift declaration
static let sketch: ImagePlaygroundStyle

An option that yields images in the style of a hand-drawn sketch.

get · iOS 18.4+

animation

TypeScript
static get animation(): ImagePlaygroundStyle
Swift declaration
static let animation: ImagePlaygroundStyle

An option that yields animated images.

Skipped declarations

No declarations were skipped in this snapshot.

All ImagePlayground types →