[UI] Fix: attestation screen and a few others where the content doesn't scroll to fill the bottom safe area

pull/7046/head
Hwee-Boon Yar 1 year ago
parent 6fe1cc7062
commit 89bb94596d
  1. 2
      AlphaWallet/Tokens/ViewControllers/AttestationViewController.swift
  2. 4
      AlphaWallet/Transfer/Views/ScrollableStackView.swift

@ -136,7 +136,7 @@ class AttestationViewController: UIViewController {
var constraints: [NSLayoutConstraint] = [
containerView.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor),
containerView.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor),
containerView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor),
containerView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
]
if let tokenScriptRendererView {
view.addSubview(tokenScriptRendererView)

@ -28,7 +28,7 @@ class ScrollableStackView: UIView {
scrollView.showsHorizontalScrollIndicator = false
scrollView.translatesAutoresizingMaskIntoConstraints = false
scrollView.addSubview(stackView)
return scrollView
}()
@ -43,7 +43,7 @@ class ScrollableStackView: UIView {
stackView.trailingAnchor.constraint(equalTo: trailingAnchor),
stackView.topAnchor.constraint(equalTo: scrollView.topAnchor),
stackView.bottomAnchor.constraint(equalTo: scrollView.bottomAnchor),
] + scrollView.anchorsConstraintSafeArea(to: self))
] + scrollView.anchorsIgnoringBottomSafeArea(to: self))
configure(viewModel: viewModel)
}

Loading…
Cancel
Save