diff --git a/CTRTests/Interface/Holder/FuzzyMatching/Details/__Snapshots__/IdentitySelectionDetailsViewControllerTests/test_snapshot.1.png b/CTRTests/Interface/Holder/FuzzyMatching/Details/__Snapshots__/IdentitySelectionDetailsViewControllerTests/test_snapshot.1.png index 7eb6c2817..b15e81435 100644 --- a/CTRTests/Interface/Holder/FuzzyMatching/Details/__Snapshots__/IdentitySelectionDetailsViewControllerTests/test_snapshot.1.png +++ b/CTRTests/Interface/Holder/FuzzyMatching/Details/__Snapshots__/IdentitySelectionDetailsViewControllerTests/test_snapshot.1.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4fe6ca85e559728fa821062650f874bc25950d904ab17973eff862fa0b84f075 -size 108747 +oid sha256:cbb04c735037d6c3b55ccbbe98c8fe7842f3629523d9396b5d0ecac495ee8368 +size 108361 diff --git a/Sources/CTR/Interface/Holder/FuzzyMatching/Details/IdentitySelectionDetailsView.swift b/Sources/CTR/Interface/Holder/FuzzyMatching/Details/IdentitySelectionDetailsView.swift index 9478a9dc0..cce95212c 100644 --- a/Sources/CTR/Interface/Holder/FuzzyMatching/Details/IdentitySelectionDetailsView.swift +++ b/Sources/CTR/Interface/Holder/FuzzyMatching/Details/IdentitySelectionDetailsView.swift @@ -52,6 +52,13 @@ class IdentitySelectionDetailsView: BaseView { stackView.spacing = ViewTraits.Spacing.stackSpacing return stackView }() + + private let spacer: UIView = { + let view = UIView() + view.translatesAutoresizingMaskIntoConstraints = false + view.backgroundColor = .clear + return view + }() override func setupViews() { @@ -66,6 +73,7 @@ class IdentitySelectionDetailsView: BaseView { addSubview(titleLabel) addSubview(contentTextView) addSubview(detailsStackView) + addSubview(spacer) } override func setupViewConstraints() { @@ -74,6 +82,7 @@ class IdentitySelectionDetailsView: BaseView { setupTitleLabelViewConstraints() setupContentTextViewConstraints() setupDetailsStackViewConstraints() + setupSpacerViewConstraints() } func setupTitleLabelViewConstraints() { @@ -137,11 +146,24 @@ class IdentitySelectionDetailsView: BaseView { constant: -2 * ViewTraits.Margin.edge ), detailsStackView.bottomAnchor.constraint( - equalTo: safeAreaLayoutGuide.bottomAnchor, + equalTo: spacer.topAnchor, constant: -ViewTraits.Margin.bottom ) ]) } + + func setupSpacerViewConstraints() { + + NSLayoutConstraint.activate([ + spacer.topAnchor.constraint(equalTo: detailsStackView.bottomAnchor), + spacer.leadingAnchor.constraint(equalTo: leadingAnchor), + spacer.trailingAnchor.constraint(equalTo: trailingAnchor), + spacer.bottomAnchor.constraint( + equalTo: safeAreaLayoutGuide.bottomAnchor, + constant: UIDevice.current.hasNotch ? 0 : -ViewTraits.Margin.bottom + ) + ]) + } // MARK: Public Access