Digital ACT-191 ONEAPP-6830 story: Fix misalignment of breadcrumbitems

This commit is contained in:
vasavk 2024-03-26 12:56:08 +05:30
parent d5138dcdd3
commit 3df155bff5

View File

@ -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()
}
}