---
title: canOpen
framework: StoreKit
role: symbol
role_heading: Type Property
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, tvOS 16.4+]
path: storekit/externallinkaccount/canopen
---

# canOpen

A Boolean value that indicates whether the app can open the external link account.

## Declaration

```swift
static var canOpen: Bool { get async }
```

## Discussion

Discussion Check this property before showing any user-interface controls that enable people to open the external link account. Don’t check this property again in response to user input; instead, call open() immediately. important: Only show user-interface controls that call the open() method if this property is true. The open() method always throws an error when canOpen is false.

## See Also

### Linking to external accounts

- [open()](storekit/externallinkaccount/open().md)
