Digital ACT-191 ONEAPP-6827 story: minor changes to see form fields
This commit is contained in:
parent
52cc0a52c7
commit
f25e9af766
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user