---
title: "accountType(withAccountTypeIdentifier:)"
framework: accounts
role: symbol
role_heading: Instance Method
path: "accounts/acaccountstore/accounttype(withaccounttypeidentifier:)"
---

# accountType(withAccountTypeIdentifier:)

Returns an account type that matches the specified identifier.

## Declaration

```swift
func accountType(withAccountTypeIdentifier typeIdentifier: String!) -> ACAccountType!
```

## Parameters

- `typeIdentifier`: The account type identifier.

## Return Value

Return Value An account type that matches typeIdentifier.
