> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# dismiss

At any point, Universal Checkout can be dismissed.

```swift SWIFT theme={"dark"}
dismiss()
```

## Example

Dismissing Universal Checkout is as easy as implementing one line of code:

```swift SWIFT theme={"dark"}
// 👇 Add this
import PrimerSDK

class MyViewController: UIViewController {

	// ...

	@IBAction func dismissUniversalCheckoutTapped(_ sender: Any) {
		// 👇 Add this
        Primer.shared.dismiss()
    }
}
```
