# OrganizationListView

![The OrganizationListView renders a standalone account picker for choosing between the user's Personal Account and Organization accounts.](https://clerk.com/docs/raw/_public/images/ui-components/ios-organization-list-view-v2.png){{ style: { maxWidth: '427px' } }}

The `OrganizationListView` renders a standalone account picker for choosing between the user's Personal Account and Organization accounts. It lists the Personal Account when allowed, Organization memberships, pending Organization invitations, suggested Organizations, and a **Create organization** action for users who can create Organizations.

Personal Account selection clears the Active Organization. Organization selection sets the selected Organization as **active**.

## Parameters

| Name                 | Type                      | Description                                                                                                                                                                                                                                                             |
| -------------------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| hidePersonal         | Bool                      | Whether the Personal AccountPersonal Accounts are individual workspaces that allow users to operate independently without belonging to an Organization. Learn more about Personal Accounts. option should be hidden even when the option is allowed. Defaults to false. |
| isDismissable        | Bool                      | Whether the view can be dismissed by the user. When true, a dismiss button appears and the view closes automatically after account selection. When false, no dismiss button is shown. Defaults to true.                                                                 |
| navigationPath       | Binding<NavigationPath>? | An optional parent navigation path for embedded usage. Pass a parent path when the view is hosted inside your own NavigationStack.                                                                                                                                      |
| skipInvitationScreen | Bool                      | Whether creating an Organization should skip the post-create invitation step. Defaults to false.                                                                                                                                                                        |

## Usage

The following examples show how to use the `OrganizationListView` in your app.

### Fullscreen account picker

```swift
import ClerkKitUI
import SwiftUI

struct AccountPickerView: View {
  var body: some View {
    OrganizationListView(isDismissable: false)
  }
}
```

### Dismissible sheet

```swift
import ClerkKitUI
import SwiftUI

struct AccountPickerButton: View {
  @State private var accountPickerIsPresented = false

  var body: some View {
    Button("Switch account") {
      accountPickerIsPresented = true
    }
    .sheet(isPresented: $accountPickerIsPresented) {
      OrganizationListView()
    }
  }
}
```

### Embedded navigation

```swift
import ClerkKitUI
import SwiftUI

struct AccountPickerScreen: View {
  @State private var path = NavigationPath()

  var body: some View {
    NavigationStack(path: $path) {
      OrganizationListView(
        isDismissable: false,
        navigationPath: $path
      )
    }
  }
}
```

### Hide the Personal Account option

> When using both `hidePersonal` and `isDismissable`, place `hidePersonal` before `isDismissable` in the `OrganizationListView` initializer. Otherwise, Swift will raise an argument-order error.

```swift
OrganizationListView(hidePersonal: true)
```

---

## Sitemap

[Overview of all docs pages](https://clerk.com/docs/llms.txt)
