chore: add spacing for title and button. resolve #225

This commit is contained in:
CMK 2021-08-05 16:34:37 +08:00
parent a95bd7c732
commit 6ee38d7d11
1 changed files with 1 additions and 4 deletions

View File

@ -64,18 +64,15 @@ extension SearchRecommendCollectionHeader {
])
let horizontalStackView = UIStackView()
horizontalStackView.spacing = 8
horizontalStackView.axis = .horizontal
horizontalStackView.alignment = .center
horizontalStackView.translatesAutoresizingMaskIntoConstraints = false
horizontalStackView.distribution = .fill
titleLabel.translatesAutoresizingMaskIntoConstraints = false
titleLabel.setContentHuggingPriority(.defaultLow - 1, for: .horizontal)
horizontalStackView.addArrangedSubview(titleLabel)
seeAllButton.translatesAutoresizingMaskIntoConstraints = false
horizontalStackView.addArrangedSubview(seeAllButton)
containerStackView.addArrangedSubview(horizontalStackView)
descriptionLabel.translatesAutoresizingMaskIntoConstraints = false
containerStackView.addArrangedSubview(descriptionLabel)
}