From 320976e5ae836762535bc6fb7b360b838030e40e Mon Sep 17 00:00:00 2001 From: "Xinlei(Ryan) Pan" Date: Mon, 27 Apr 2020 14:09:37 -0400 Subject: [PATCH] weak delegate --- MVMCoreUI/Atomic/Atoms/TextFields/EntryField.swift | 2 +- .../Atomic/Molecules/HorizontalCombinationViews/Tabs.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/TextFields/EntryField.swift b/MVMCoreUI/Atomic/Atoms/TextFields/EntryField.swift index 6bb82fe1..03454d06 100644 --- a/MVMCoreUI/Atomic/Atoms/TextFields/EntryField.swift +++ b/MVMCoreUI/Atomic/Atoms/TextFields/EntryField.swift @@ -41,7 +41,7 @@ import UIKit // MARK: - Delegate //-------------------------------------------------- - weak var delegateObject: MVMCoreUIDelegateObject? + var delegateObject: MVMCoreUIDelegateObject? //-------------------------------------------------- // MARK: - Stored Properties diff --git a/MVMCoreUI/Atomic/Molecules/HorizontalCombinationViews/Tabs.swift b/MVMCoreUI/Atomic/Molecules/HorizontalCombinationViews/Tabs.swift index d49cd414..6caa6a03 100644 --- a/MVMCoreUI/Atomic/Molecules/HorizontalCombinationViews/Tabs.swift +++ b/MVMCoreUI/Atomic/Molecules/HorizontalCombinationViews/Tabs.swift @@ -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) }