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

Skip to content

Commit c1edce1

Browse files
添加返回按钮
1 parent 3909b8b commit c1edce1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Sources/ZYCommonUtil/CustomNavViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ open class NavBarAppear {
1818
open var titleFont: UIFont = UIFont.systemFont(ofSize: 20)
1919
open var titleColor: UIColor = .black
2020
open var lineHid: Bool = true
21+
open var backImage: String = ""
2122
}
2223

2324
open class NavBarView: UIView {
@@ -87,6 +88,7 @@ open class NavBarView: UIView {
8788
titleLbl.font = NavBarAppear.default.titleFont
8889
titleLbl.textColor = NavBarAppear.default.titleColor
8990
line.isHidden = NavBarAppear.default.lineHid
91+
backBtn.setImage(UIImage(named: NavBarAppear.default.backImage), for: .normal)
9092
}
9193

9294
@objc func back() {

0 commit comments

Comments
 (0)