UI Components

Components can have UI which gets rendered by the platform

Overview

Components can be defined as UI components and will have the ability to be rendered when an input is sent to a navigationTrigger input. The SDK will automatically navigate to the component and will initialize the view.

SwiftUI

Components with UI are only supported with SwiftUI parent structs. The view must comply to the ComponentView protocol

ComponentView

UIKit view can be wrapped within the required parent SwiftUI view which conforms to the ComponentView protocol by using UIViewRepresentable. In fact, many default components leverage UIKit views under the hood

Requirements

The following are required in order for your component to properly interface with the Cloneable SDK

Code example

Last updated