@@ -438,6 +438,14 @@ open class KMChatConversationViewController: KMChatBaseViewController, Localizab
438438 }
439439 let profile = weakSelf. viewModel. conversationProfileFrom ( contact: nil , channel: channel)
440440 weakSelf. navigationBar. updateView ( profile: profile)
441+ if #available( iOS 26 . 0 , * ) {
442+ weakSelf. navigationItem. rightBarButtonItems? . forEach {
443+ $0. hidesSharedBackground = true
444+ }
445+ weakSelf. navigationItem. leftBarButtonItems? . forEach {
446+ $0. hidesSharedBackground = true
447+ }
448+ }
441449 weakSelf. newMessagesAdded ( )
442450 } )
443451
@@ -469,6 +477,14 @@ open class KMChatConversationViewController: KMChatBaseViewController, Localizab
469477 self . viewModel. currentConversationProfile ( completion: { profile in
470478 guard let profile = profile else { return }
471479 self . navigationBar. updateView ( profile: profile)
480+ if #available( iOS 26 . 0 , * ) {
481+ self . navigationItem. rightBarButtonItems? . forEach {
482+ $0. hidesSharedBackground = true
483+ }
484+ self . navigationItem. leftBarButtonItems? . forEach {
485+ $0. hidesSharedBackground = true
486+ }
487+ }
472488 } )
473489 #if canImport(ChatProvidersSDK)
474490 guard KMZendeskChatHandler . shared. isZendeskEnabled ( ) ,
@@ -840,6 +856,7 @@ open class KMChatConversationViewController: KMChatBaseViewController, Localizab
840856 guard !items. contains ( where: { $0. customView == navigationBar } ) else { return }
841857 items. append ( UIBarButtonItem ( customView: navigationBar) )
842858 navigationItem. leftBarButtonItems = items
859+ configureNavigationBarButtonsForIOS26 ( )
843860 }
844861
845862 private func prepareTable( ) {
@@ -2671,6 +2688,7 @@ extension KMChatConversationViewController: KMChatConversationViewModelDelegate
26712688 public func updateDisplay( contact: ALContact ? , channel: KMCoreChannel ? ) {
26722689 let profile = viewModel. conversationProfileFrom ( contact: contact, channel: channel)
26732690 navigationBar. updateView ( profile: profile)
2691+ configureNavigationBarButtonsForIOS26 ( )
26742692 }
26752693
26762694 // Call this if the last message is not fully visible.
@@ -2695,13 +2713,14 @@ extension KMChatConversationViewController: KMChatConversationViewModelDelegate
26952713 if configuration. rightNavBarSystemIconForConversationView == . refresh {
26962714 selector = #selector( KMChatConversationViewController . refreshButtonAction ( _: ) )
26972715 let refresh = UIImage ( named: " refreshIcon " , in: Bundle . km, compatibleWith: nil )
2698- let refreshIcon = refresh? . withRenderingMode ( . alwaysOriginal ) . scale ( with: CGSize ( width: 20 , height: 20 ) )
2716+ let refreshIcon = refresh? . withRenderingMode ( . alwaysTemplate ) . scale ( with: CGSize ( width: 20 , height: 20 ) )
26992717 button = UIBarButtonItem (
27002718 image: refreshIcon,
27012719 style: . plain,
27022720 target: self ,
27032721 action: selector
27042722 )
2723+ button. tintColor = configuration. refreshButtonIconColor
27052724
27062725 } else {
27072726 button = UIBarButtonItem (
@@ -2757,6 +2776,7 @@ extension KMChatConversationViewController: KMChatConversationViewModelDelegate
27572776 if !rightBarButtonItems. isEmpty {
27582777 navigationItem. rightBarButtonItems = rightBarButtonItems
27592778 }
2779+ configureNavigationBarButtonsForIOS26 ( )
27602780 }
27612781
27622782 @objc open func showFeedback( ) { }
@@ -2806,6 +2826,7 @@ extension KMChatConversationViewController: KMChatConversationViewModelDelegate
28062826 self . loadingIndicator. stopLoading ( )
28072827 self . navigationBar. updateView ( profile: profile)
28082828 }
2829+ configureNavigationBarButtonsForIOS26 ( )
28092830 }
28102831
28112832 public func showChatBarForOperator( ) {
0 commit comments