weak delegate

This commit is contained in:
Xinlei(Ryan) Pan 2020-04-27 14:09:37 -04:00
parent a1ca758c1b
commit 320976e5ae
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ import UIKit
// MARK: - Delegate // MARK: - Delegate
//-------------------------------------------------- //--------------------------------------------------
weak var delegateObject: MVMCoreUIDelegateObject? var delegateObject: MVMCoreUIDelegateObject?
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Stored Properties // MARK: - Stored Properties

View File

@ -32,7 +32,7 @@ import UIKit
var bottomLineWidthConstraint: NSLayoutConstraint? var bottomLineWidthConstraint: NSLayoutConstraint?
//delegate //delegate
public var delegate: TabsDelegate? weak public var delegate: TabsDelegate?
//control var //control var
public var heightConstraint: NSLayoutConstraint? public var heightConstraint: NSLayoutConstraint?
@ -93,7 +93,7 @@ import UIKit
bottomScrollView.delegate = self bottomScrollView.delegate = self
addSubview(bottomScrollView) addSubview(bottomScrollView)
bottomScrollView.addSubview(bottomContentView) bottomScrollView.addSubview(bottomContentView)
bottomLine.backgroundColor = .mfTomatoRed() bottomLine.backgroundColor = .mvmRed
bottomContentView.addSubview(bottomLine) bottomContentView.addSubview(bottomLine)
bringSubviewToFront(bottomScrollView) bringSubviewToFront(bottomScrollView)
} }