State Types
Replacing State Views
- SwiftUI
- UIKit
Each component takes The same three are modifiers that reach every instance below them, for example
loadingView, emptyView and errorView closures returning
AnyView. errorView receives a retry closure — call it to fetch again:.cometChatConversationEmptyView { … }. The argument wins over the modifier.
loadingView

emptyView

errorView

UIKit loadingView

UIKit emptyView

UIKit errorView
Restyle Instead of Replacing
To keep the built-in views and change only their colours and fonts, use the component’s style.- SwiftUI
- UIKit
Hiding State Views
- SwiftUI
- UIKit
Components with State Views
- SwiftUI
- UIKit
Related
- View Slots — replace regions of a row.
- Customization Overview — every customization category.