---
title: default()
framework: cloudkit
role: symbol
role_heading: Type Method
path: cloudkit/ckcontainer/default()
---

# default()

Returns the app’s default container.

## Declaration

```swift
class func `default`() -> CKContainer
```

## Mentioned in

Designing and Creating a CloudKit Database

## Discussion

Discussion Use this method to retrieve your app’s default container. This is the one you typically use to store your app’s data. If you want the container for a different app, create a container using the init(identifier:) method. During development, the container uses the development environment. When you release your app, the container uses the production environment.

## See Also

### Creating Containers

- [init(identifier:)](cloudkit/ckcontainer/init(identifier:).md)
