---
title: "world(configuration:)"
framework: WebKit
role: symbol
role_heading: Type Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, visionOS 27.0+]
path: "webkit/wkcontentworld/world(configuration:)"
---

# world(configuration:)

## Declaration

```swift
class func world(configuration: WKContentWorldConfiguration) -> WKContentWorld
```

## Discussion

Discussion Creates a world with the given WKContentWorldConfiguration Unlike all other worlds, worlds created with this factory method cannot be retrieved later. Clients therefore need to take care to reference them for as long as they are needed.
