UI Customization
Customize Conversation UI components in your iOS app
The SpotImCustomUIDelegate
allows you to customize UI components, such as the login prompt, Conversation footer, and navigation title.


SpotImCustomUIDelegate Reference
Customize UI components
Use the following steps to customize UI components:
- Implement the
SpotImCustomUIDelegate
protocol.
extension ArticleViewController: SpotImCustomUIDelegate {
func customizeView(view: CustomizableView, isDarkMode: Bool, postId: String) {
switch view {
case .loginPrompt(let textView):
// set your own customization
break
// set more customizations to another CustomizableView
default:
break
}
}
}
- In
SpotIm.createSpotImFlowCoordinator
, set theSpotImCustomUIDelegate
to the coordinator.
SpotIm.createSpotImFlowCoordinator(loginDelegate: self) { result in
switch result {
case .success(let coordinator):
self.spotIMCoordinator = coordinator
coordinator.setCustomUIDelegate(delegate: self) // set the delegate
}
}
Updated about 1 month ago
Did this page help you?