---
title: MigrationStatus
framework: appmigrationkit
role: symbol
role_heading: Enumeration
path: appmigrationkit/migrationstatus
---

# MigrationStatus

A type the containing app uses to determine the status of a completed import.

## Declaration

```swift
enum MigrationStatus
```

## Overview

Overview After the first time the app launches, check this type’s static variable importStatus to determine whether a migration took place and, if so, whether it succeeded. To determine the status, check to see if importStatus is non-nil and that its value is MigrationStatus.success. After a successful migration, notify the person using the app that migration succeeded, and call the static method clearImportStatus().

## Topics

### Accessing the import status

- [importStatus](appmigrationkit/migrationstatus/importstatus.md)
- [clearImportStatus()](appmigrationkit/migrationstatus/clearimportstatus().md)

### Examining migration statuses

- [MigrationStatus.success](appmigrationkit/migrationstatus/success.md)
- [MigrationStatus.failure(_:)](appmigrationkit/migrationstatus/failure(_:).md)
