Digital ACT-191 ONEAPP-6827 story: minor changes to see form fields

This commit is contained in:
vasavk 2024-03-13 17:50:19 +05:30
parent 52cc0a52c7
commit f25e9af766
2 changed files with 11 additions and 5 deletions

View File

@ -17,7 +17,6 @@ final class BreadcrumbCellItem: UICollectionViewCell {
//--------------------------------------------------
// MARK: - Private Properties
//--------------------------------------------------
internal var stackView: UIStackView = {
return UIStackView().with {
$0.translatesAutoresizingMaskIntoConstraints = false
@ -70,9 +69,9 @@ final class BreadcrumbCellItem: UICollectionViewCell {
contentView.addSubview(stackView)
separator.backgroundColor = .clear
stackView.backgroundColor = .red
breadcrumb.backgroundColor = .green
separator.backgroundColor = .yellow
// stackView.backgroundColor = .red
// breadcrumb.backgroundColor = .green
// separator.backgroundColor = .yellow
}
///Updating UI based on selected index, current index along with surface

View File

@ -76,6 +76,13 @@ open class Breadcrumbs: View {
/// Executed on initialization for this View.
open override func initialSetup() {
super.initialSetup()
addSubview(containerView)
containerView.pinToSuperView()
//for TEST
containerView.widthAnchor.constraint(greaterThanOrEqualToConstant: 288).activate()
containerView.heightAnchor.constraint(equalToConstant: 150).activate()
containerView.addSubview(collectionView)
}
/// Resets to default settings.
@ -99,7 +106,7 @@ extension Breadcrumbs: UICollectionViewDelegate, UICollectionViewDataSource, UIC
public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
guard let cell = collectionView.dequeueReusableCell(withReuseIdentifier: BreadcrumbCellItem.identifier, for: indexPath) as? BreadcrumbCellItem else { return UICollectionViewCell() }
var showSlash = (indexPath.row == (breadcrumbItems.count - 1))
let showSlash = (indexPath.row == (breadcrumbItems.count - 1))
cell.update(_selectedPageIndex, currentIndex: indexPath.row, surface: surface, showSlash: showSlash)
return cell
}