refactor: remove negative constraints
This commit is contained in:
parent
85014802c4
commit
db48e56dd9
|
@ -70,7 +70,7 @@ final class ReportHeaderView: UIView {
|
||||||
|
|
||||||
stackview.translatesAutoresizingMaskIntoConstraints = false
|
stackview.translatesAutoresizingMaskIntoConstraints = false
|
||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
stackview.safeAreaLayoutGuide.topAnchor.constraint(
|
stackview.topAnchor.constraint(
|
||||||
equalTo: self.topAnchor,
|
equalTo: self.topAnchor,
|
||||||
constant: ReportView.verticalMargin
|
constant: ReportView.verticalMargin
|
||||||
),
|
),
|
||||||
|
@ -78,13 +78,13 @@ final class ReportHeaderView: UIView {
|
||||||
equalTo: self.readableContentGuide.leadingAnchor,
|
equalTo: self.readableContentGuide.leadingAnchor,
|
||||||
constant: ReportView.horizontalMargin
|
constant: ReportView.horizontalMargin
|
||||||
),
|
),
|
||||||
stackview.bottomAnchor.constraint(
|
self.bottomAnchor.constraint(
|
||||||
equalTo: self.bottomAnchor,
|
equalTo: stackview.bottomAnchor,
|
||||||
constant: -1 * ReportView.verticalMargin
|
constant: ReportView.verticalMargin
|
||||||
),
|
),
|
||||||
stackview.trailingAnchor.constraint(
|
self.readableContentGuide.trailingAnchor.constraint(
|
||||||
equalTo: self.readableContentGuide.trailingAnchor,
|
equalTo: stackview.trailingAnchor,
|
||||||
constant: -1 * ReportView.horizontalMargin
|
constant: ReportView.horizontalMargin
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue