I have the following chatViewController being called this way:
func handle(proposal: VisitProposal, from navigator: Navigator) -> ProposalResult {
switch proposal.viewController {
case "chat":
let chatViewController = ChatViewController(url: proposal.url)
return .acceptCustom(chatViewController)
default:
return .accept
}
}
It’s used solely for the purpose of hiding the tabBarController’s bar at the bottom:
import UIKit
import HotwireNative
@MainActor
class ChatViewController: VisitableViewController {
override init(url: URL) {
super.init(url: url)
hidesBottomBarWhenPushed = true
}
...
I would like that when we hit the back button on the ChatViewController that it refreshes the controller it pops back to. What approach would you suggest?