mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Remove shadow
This commit is contained in:
parent
cb3a90b5be
commit
68e29d2aea
@ -267,7 +267,7 @@ extension ProfileHeaderView.ViewModel {
|
||||
.store(in: &disposeBag)
|
||||
// relationship
|
||||
$isRelationshipActionButtonHidden
|
||||
.assign(to: \.isHidden, on: view.relationshipActionButtonShadowContainer)
|
||||
.assign(to: \.isHidden, on: view.relationshipActionButton)
|
||||
.store(in: &disposeBag)
|
||||
|
||||
Publishers.CombineLatest3(
|
||||
|
@ -194,7 +194,6 @@ final class ProfileHeaderView: UIView {
|
||||
|
||||
let statusDashboardView = ProfileStatusDashboardView()
|
||||
|
||||
let relationshipActionButtonShadowContainer = ShadowBackgroundContainer()
|
||||
let relationshipActionButton: ProfileRelationshipActionButton = {
|
||||
let button = ProfileRelationshipActionButton()
|
||||
button.titleLabel?.font = .systemFont(ofSize: 17, weight: .semibold)
|
||||
@ -369,7 +368,7 @@ final class ProfileHeaderView: UIView {
|
||||
avatarImageViewBackgroundView.bottomAnchor.constraint(equalTo: dashboardContainer.bottomAnchor),
|
||||
])
|
||||
|
||||
// authorContainer: H - [ nameContainer | padding | relationshipActionButtonShadowContainer ]
|
||||
// authorContainer: H - [ nameContainer | padding | relationshipActionButton ]
|
||||
let authorContainer = UIStackView()
|
||||
authorContainer.axis = .horizontal
|
||||
authorContainer.alignment = .top
|
||||
@ -420,11 +419,9 @@ final class ProfileHeaderView: UIView {
|
||||
|
||||
authorContainer.addArrangedSubview(nameContainerStackView)
|
||||
authorContainer.addArrangedSubview(UIView())
|
||||
authorContainer.addArrangedSubview(relationshipActionButtonShadowContainer)
|
||||
|
||||
authorContainer.addArrangedSubview(relationshipActionButton)
|
||||
|
||||
relationshipActionButton.translatesAutoresizingMaskIntoConstraints = false
|
||||
relationshipActionButtonShadowContainer.addSubview(relationshipActionButton)
|
||||
relationshipActionButton.pinToParent()
|
||||
NSLayoutConstraint.activate([
|
||||
relationshipActionButton.widthAnchor.constraint(greaterThanOrEqualToConstant: ProfileHeaderView.friendshipActionButtonSize.width).priority(.required - 1),
|
||||
relationshipActionButton.heightAnchor.constraint(equalToConstant: ProfileHeaderView.friendshipActionButtonSize.height).priority(.defaultHigh),
|
||||
|
Loading…
x
Reference in New Issue
Block a user