Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Fix/14904 EOL - "Mehr" area has unnecessary line / space in the end #5079

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ class HomeMoreInfoTableViewCell: UITableViewCell {
let nib = UINib(nibName: nibName, bundle: .main)

if let actionItemView = nib.instantiate(withOwner: self, options: nil).first as? MoreActionItemView {
actionItemView.configure(actionItem: item) { selectedItem in
actionItemView.configure(
actionItem: item,
hideSeparatorView: item == items.last
) { selectedItem in
onItemTap(selectedItem)
}
stackView.addArrangedSubview(actionItemView)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class MoreActionItemView: UIView {

func configure(
actionItem: MoreInfoItem,
hideSeparatorView: Bool = false,
completion: @escaping ((MoreInfoItem) -> Void)
) {
imageView.image = actionItem.image
Expand All @@ -31,7 +32,7 @@ class MoreActionItemView: UIView {
accessibilityIdentifier = actionItem.accessibilityIdentifier
accessibilityLabel = actionItem.title

separatorView.isHidden = actionItem == .share
separatorView.isHidden = hideSeparatorView

self.actionItem = actionItem
self.completion = completion
Expand Down