Digital ACT-191 ONEAPP-6830 story: Fix misalignment of breadcrumbitems
This commit is contained in:
parent
d5138dcdd3
commit
3df155bff5
@ -64,10 +64,6 @@ final class BreadcrumbCellItem: UICollectionViewCell {
|
||||
|
||||
///Updating the breadCrumbItem and UI based on the selected flag along with the surface
|
||||
func update(surface: Surface, hideSlash: Bool, breadCrumbItem: BreadcrumbItem) {
|
||||
//remove views from stack
|
||||
separator.removeFromSuperview()
|
||||
self.breadCrumbItem?.removeFromSuperview()
|
||||
|
||||
//update surface
|
||||
separator.surface = surface
|
||||
breadCrumbItem.surface = surface
|
||||
@ -84,11 +80,5 @@ final class BreadcrumbCellItem: UICollectionViewCell {
|
||||
self.breadCrumbItem = breadCrumbItem
|
||||
layoutIfNeeded()
|
||||
}
|
||||
|
||||
/// Remove views from StackView.
|
||||
override func prepareForReuse() {
|
||||
super.prepareForReuse()
|
||||
separator.removeFromSuperview()
|
||||
breadCrumbItem?.removeFromSuperview()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user