line fix in header
This commit is contained in:
parent
8be65d4f57
commit
664d3195bb
@ -26,9 +26,12 @@ public class StandardHeaderView: ViewConstrainingView {
|
|||||||
bottomMarginPadding = PaddingDefaultVerticalSpacing
|
bottomMarginPadding = PaddingDefaultVerticalSpacing
|
||||||
|
|
||||||
guard line == nil else { return }
|
guard line == nil else { return }
|
||||||
let line = Line(pinTo: self, edge: .bottom, useMargin: true)
|
let line = Line()
|
||||||
line.style = .heavy
|
line.style = .heavy
|
||||||
addSubview(line)
|
addSubview(line)
|
||||||
|
NSLayoutConstraint.pinViewBottom(toSuperview: line, useMargins: false, constant: 0).isActive = true
|
||||||
|
NSLayoutConstraint.pinViewLeft(toSuperview: line, useMargins: true, constant: 0).isActive = true
|
||||||
|
NSLayoutConstraint.pinViewRight(toSuperview: line, useMargins: true, constant: 0).isActive = true
|
||||||
self.line = line
|
self.line = line
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user