Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 806b7c8

Browse files
add line
1 parent 1ebda66 commit 806b7c8

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Sources/ZYCommonUtil/CustomNavViewController.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ open class NavBarView: UIView {
1717
open var titleLbl: UILabel!
1818
open var rightBtn: UIButton!
1919
open var right2Btn: UIButton!
20-
20+
open var line: UIView!
2121
open var delegate: NavBarViewDelegate?
2222

2323
override init(frame: CGRect) {
@@ -65,6 +65,14 @@ open class NavBarView: UIView {
6565
make.right.equalTo(rightBtn.snp.left).offset(-15)
6666
}
6767
right2Btn.addTarget(self, action: #selector(actionClick(btn:)), for: .touchUpInside)
68+
69+
line = UIView()
70+
line.backgroundColor = UIColor(hexString: "#979797")
71+
addSubview(line)
72+
line.snp.makeConstraints { (make) in
73+
make.left.right.bottom.equalToSuperview()
74+
make.height.equalTo(0.5)
75+
}
6876
}
6977

7078
@objc func back() {

0 commit comments

Comments
 (0)