Skip to content

Commit

Permalink
MOB-1785 - Fixed pull up UI (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg-Pecheneg authored Feb 5, 2024
1 parent 3a990c6 commit 25434c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ final class PullUpCollectionViewCell: BaseListCollectionViewCell {
@IBOutlet private weak var subtitleLabel: UILabel!
@IBOutlet private weak var subtitleImageView: UIImageView!
@IBOutlet private weak var chevronContainerView: UIView!
@IBOutlet private weak var trailingStackView: UIStackView!
@IBOutlet private weak var containerHeightConstraint: NSLayoutConstraint!
@IBOutlet private weak var actionButton: UDConfigurableButton!

Expand Down Expand Up @@ -110,6 +111,8 @@ extension PullUpCollectionViewCell {
actionButton.isHidden = true
chevronImageView.image = pullUpItem.disclosureIndicatorStyle.icon
}
trailingStackView.alignment = actionButton.isHidden ? .fill : .trailing
trailingStackView.isHidden = trailingStackView.arrangedSubviews.filter( { !$0.isHidden }).isEmpty

Task {
iconContainerView.image = await pullUpItem.icon
Expand Down Expand Up @@ -144,8 +147,10 @@ private extension PullUpCollectionViewCell {
#Preview {
let collectionView = PreviewCollectionViewCell<PullUpCollectionViewCell>(cellSize: CGSize(width: 390, height: 68),
configureCellCallback: { cell in
cell.setWith(pullUpItem: MessagingChatUserPullUpSelectionItem.init(userInfo: .init(wallet: "adasd"), isAdmin: false, isPending: false,
cell.setWith(pullUpItem: MessagingChatUserPullUpSelectionItem.init(userInfo: .init(wallet: "adasdsdf sd fsd fsdf sd fsd"), isAdmin: false, isPending: false,
unblockCallback: { }))
// cell.setWith(pullUpItem: WalletDetailsAddWalletAction.recoveryOrKey)
// cell.setWith(pullUpItem: ManageBackupsAction.restore)
})

return collectionView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
<outlet property="subtitleImageView" destination="EM1-AP-wbm" id="66c-l2-B1Y"/>
<outlet property="subtitleLabel" destination="LEY-Ba-zPc" id="FID-Ox-g2l"/>
<outlet property="titleLabel" destination="7JH-SK-m9W" id="D2D-88-0iL"/>
<outlet property="trailingStackView" destination="W9K-XZ-HCY" id="lrU-9f-FqG"/>
</connections>
<point key="canvasLocation" x="363.04347826086962" y="148.66071428571428"/>
</collectionViewCell>
Expand Down

0 comments on commit 25434c9

Please sign in to comment.