Changes to swap store buttons with shop cart button in navigation bar
This commit is contained in:
parent
22983017e6
commit
c691b6add6
@ -90,6 +90,11 @@ public extension MVMCoreUISplitViewController {
|
|||||||
rightItems.append(panelButton)
|
rightItems.append(panelButton)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add any buttons added by the splitview.
|
||||||
|
if let additionalRightButtons = additionalRightButtons(for: viewController) {
|
||||||
|
rightItems.append(contentsOf: additionalRightButtons)
|
||||||
|
}
|
||||||
|
|
||||||
// Add other model buttons
|
// Add other model buttons
|
||||||
if let rightItemModels = navigationItemModel?.additionalRightButtons {
|
if let rightItemModels = navigationItemModel?.additionalRightButtons {
|
||||||
for item in rightItemModels {
|
for item in rightItemModels {
|
||||||
@ -97,11 +102,6 @@ public extension MVMCoreUISplitViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add any buttons added by the splitview.
|
|
||||||
if let additionalRightButtons = additionalRightButtons(for: viewController) {
|
|
||||||
rightItems.append(contentsOf: additionalRightButtons)
|
|
||||||
}
|
|
||||||
|
|
||||||
topViewController.navigationItem.setRightBarButtonItems(rightItems.count > 0 ? rightItems : nil, animated: !DisableAnimations.boolValue)
|
topViewController.navigationItem.setRightBarButtonItems(rightItems.count > 0 ? rightItems : nil, animated: !DisableAnimations.boolValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user