---
title: "init(style:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiglasseffect/init(style:)"
---

# init(style:)

Creates a glass effect with the specified style.

## Declaration

```swift
init(style: UIGlassEffect.Style)
```
