File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,13 +15,28 @@ class ReaderSiteHeaderView: ReaderBaseHeaderView, ReaderStreamHeader {
1515 } )
1616 } ( )
1717
18+ private let separatorView : UIView = {
19+ let view = UIView ( )
20+ view. backgroundColor = . separator
21+ return view
22+ } ( )
23+
1824 override init ( frame: CGRect ) {
1925 super. init ( frame: frame)
2026
2127 let header = ReaderSiteHeader ( viewModel: headerViewModel)
2228 let view = UIView . embedSwiftUIView ( header)
2329 contentView. addSubview ( view)
2430 view. pinEdges ( )
31+
32+ addSubview ( separatorView)
33+ separatorView. translatesAutoresizingMaskIntoConstraints = false
34+ NSLayoutConstraint . activate ( [
35+ separatorView. leadingAnchor. constraint ( equalTo: leadingAnchor) ,
36+ separatorView. trailingAnchor. constraint ( equalTo: trailingAnchor) ,
37+ separatorView. bottomAnchor. constraint ( equalTo: bottomAnchor, constant: - 8 ) ,
38+ separatorView. heightAnchor. constraint ( equalToConstant: 1 )
39+ ] )
2540 }
2641
2742 required init ? ( coder: NSCoder ) {
You can’t perform that action at this time.
0 commit comments