<!--
{
  "availability" : [
    "iOS: 10.1.0 - 18.0.0",
    "iPadOS: 10.1.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKCloudServiceSetupViewController/load(options:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKCloudServiceSetupViewController(im)loadWithOptions:completionHandler:"
  },
  "title" : "load(options:completionHandler:)"
}
-->

# load(options:completionHandler:)

Loads the cloud service setup view with the specified options.

```
func load(options: [SKCloudServiceSetupOptionsKey : Any] = [:], completionHandler: ((Bool, (any Error)?) -> Void)? = nil)
```

## Parameters

`options`

A key that identifies the type of setup the user needs to do. See [`SKCloudServiceSetupOptionsKey`](/documentation/StoreKit/SKCloudServiceSetupOptionsKey) for possible values.

`completionHandler`

A block that is called when the setup view has loaded. The block takes the following parameters:

    `result`

    A Boolean value that indicates whether the view controller has loaded the view and can be presented.

    `error`

    An error value that indicates the reason for failure. Possible values are [`SKError.Code.unknown`](/documentation/StoreKit/SKError/Code/unknown)    , [`SKError.Code.cloudServicePermissionDenied`](/documentation/StoreKit/SKError/Code/cloudServicePermissionDenied)    , and [`SKError.Code.cloudServiceNetworkConnectionFailed`](/documentation/StoreKit/SKError/Code/cloudServiceNetworkConnectionFailed)    .

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)