diff --git a/ios/FluentUI/Table View/TableViewHeaderFooterView.swift b/ios/FluentUI/Table View/TableViewHeaderFooterView.swift index 7c541b4f5..11fe06631 100644 --- a/ios/FluentUI/Table View/TableViewHeaderFooterView.swift +++ b/ios/FluentUI/Table View/TableViewHeaderFooterView.swift @@ -346,8 +346,12 @@ open class TableViewHeaderFooterView: UITableViewHeaderFooterView, TokenizedCont accessoryButton = !accessoryButtonTitle.isEmpty ? createAccessoryButton(withTitle: accessoryButtonTitle) : nil + /// `accessoryButton` and `accessoryView` occupy the same space at the trailing end of the view. If both are provided, the `accessoryView` will be given priority + if accessoryView != nil { + self.accessoryView = accessoryView + } + self.leadingView = leadingView - self.accessoryView = accessoryView self.style = style