reuse issue fix

This commit is contained in:
Pfeil, Scott Robert 2020-04-14 14:06:27 -04:00
parent bf1ca8b285
commit 1e86bfbc32

View File

@ -61,6 +61,7 @@ import UIKit
/// Creates the bars
open func set(with progressList: Array<SingleProgressBarModel>, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
stack.removeAllItemViews()
guard let stackModel = stack.stackModel else { return }
var views: [StackItem] = []
var models: [StackItemModel] = []
@ -89,6 +90,7 @@ import UIKit
open override func reset() {
super.reset()
backgroundColor = .mfLightSilver()
stack.reset()
set(with: [], nil, nil)
}