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

# Wrap the UI with the Cloneable renderer

> Let Cloneable render workflows in its navigation stack

## Overview

When a workflow starts, the Cloneable SDK renders it in its own navigation stack.

## Wrapping the UI

Wrap your full-screen SwiftUI view with `CloneableWorkflowWrapper`. You can wrap one view or your entire view stack.

When the workflow completes or stops, the wrapper returns to the entry view.

### Example implementation

```swift theme={null}
// example usage
// This view should take up the entirety of the screen
struct YourApp: View {
    @EnvironmentObject var cloneable: CloneablePlatform
    
    var body: some View {
        CloneableWorkflowWrapper(cloneablePlatform: cloneable) {
            // The rest of your apps views and children views
            MyAppViews()
        }
    }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.