diff --git a/Signal/src/ViewControllers/Donations/DonateViewController.swift b/Signal/src/ViewControllers/Donations/DonateViewController.swift index 7f9974d898..a1d2a01434 100644 --- a/Signal/src/ViewControllers/Donations/DonateViewController.swift +++ b/Signal/src/ViewControllers/Donations/DonateViewController.swift @@ -483,7 +483,7 @@ class DonateViewController: OWSViewController, OWSNavigationChildController { let result = UIStackView() result.axis = .vertical result.alignment = .fill - result.spacing = 26 + result.spacing = 24 return result }() diff --git a/Signal/src/ViewControllers/Donations/DonationHeroView.swift b/Signal/src/ViewControllers/Donations/DonationHeroView.swift index 48c997fcab..7cec5cb399 100644 --- a/Signal/src/ViewControllers/Donations/DonationHeroView.swift +++ b/Signal/src/ViewControllers/Donations/DonationHeroView.swift @@ -22,10 +22,9 @@ class DonationHeroView: UIStackView { self.axis = .vertical self.alignment = .center self.isLayoutMarginsRelativeArrangement = true - self.spacing = 20 self.addArrangedSubview(avatarView) - self.setCustomSpacing(16, after: avatarView) + self.setCustomSpacing(12, after: avatarView) let titleLabel = UILabel() titleLabel.textAlignment = .center @@ -37,11 +36,15 @@ class DonationHeroView: UIStackView { titleLabel.numberOfLines = 0 titleLabel.lineBreakMode = .byWordWrapping self.addArrangedSubview(titleLabel) - self.setCustomSpacing(20, after: titleLabel) + self.setCustomSpacing(6, after: titleLabel) descriptionTextView.delegate = self self.addArrangedSubview(descriptionTextView) + // Others may add additional views after the description view, which is + // why we set this spacing. + self.setCustomSpacing(24, after: descriptionTextView) + rerender() }