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
//--------------------------------------------------
weak var delegateObject: MVMCoreUIDelegateObject?
var delegateObject: MVMCoreUIDelegateObject?
//--------------------------------------------------
// MARK: - Stored Properties

View File

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