Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2705836 commit f166123Copy full SHA for f166123
1 file changed
Sources/ZYCommonUtil/CustomNavViewController.swift
@@ -8,7 +8,7 @@ import Foundation
8
import UIKit
9
import SnapKit
10
11
-public protocol NavBarViewDelegate {
+public protocol NavBarViewDelegate: UIViewController {
12
func clickNavBar(type: Int)
13
}
14
@@ -18,7 +18,7 @@ open class NavBarView: UIView {
18
open var rightBtn: UIButton!
19
open var right2Btn: UIButton!
20
open var line: UIView!
21
- open var delegate: NavBarViewDelegate?
+ weak open var delegate: NavBarViewDelegate?
22
23
override init(frame: CGRect) {
24
super.init(frame: frame)
0 commit comments