Untitled
let answerBotEngine = try AnswerBotEngine.engine() let supportEngine = try SupportEngine.engine() let helpCenterConfiguration = HelpCenterUiConfiguration() helpCenterConfiguration.engines = [answerBotEngine, supportEngine] let showContactOptions = ResponseCache.hasEmailEndpoint() helpCenterConfiguration.showContactOptions = showContactOptions helpCenterConfiguration.showContactOptionsOnEmptySearch = showContactOptions let articleUiConfiguration = ArticleUiConfiguration() articleUiConfiguration.showContactOptions = showContactOptions let controller = HelpCenterUi.buildHelpCenterOverviewUi( withConfigs: [helpCenterConfiguration, articleUiConfiguration] ) let navController = UINavigationController(rootViewController: controller) navController.modalPresentationStyle = .fullScreen navController.setNavigationBarHidden(false, animated: false) navController.navigationBar.tintColor = .black presenter.present(navController, animated: true)
Leave a Comment