---
title: "openPlayground(withContentIdentifier:toPageAtIndex:)"
framework: playgroundsupport
role: symbol
role_heading: Instance Method
path: playgroundsupport/playgroundpage/3239067-openplayground
---

# openPlayground(withContentIdentifier:toPageAtIndex:)

## Declaration

```swift
func openPlayground(withContentIdentifier contentIdentifier: String, toPageAtIndex pageIndex: Int? = nil)
```
