added weak self
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
2bc62fb268
commit
db0afbb15d
@ -49,7 +49,6 @@ open class Tilelet: VDS.Tilelet, VDSMoleculeViewProtocol{
|
|||||||
badgeModel = viewModel.badge
|
badgeModel = viewModel.badge
|
||||||
descriptiveIconModel = viewModel.descriptiveIcon
|
descriptiveIconModel = viewModel.descriptiveIcon
|
||||||
directionalIconModel = viewModel.directionalIcon
|
directionalIconModel = viewModel.directionalIcon
|
||||||
|
|
||||||
//setup action
|
//setup action
|
||||||
if let action = viewModel.action {
|
if let action = viewModel.action {
|
||||||
//add the subscriber
|
//add the subscriber
|
||||||
@ -87,7 +86,8 @@ open class Tilelet: VDS.Tilelet, VDSMoleculeViewProtocol{
|
|||||||
open override func layoutSubviews() {
|
open override func layoutSubviews() {
|
||||||
super.layoutSubviews()
|
super.layoutSubviews()
|
||||||
// Accounts for any collection size changes
|
// Accounts for any collection size changes
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async { [weak self] in
|
||||||
|
guard let self else { return }
|
||||||
self.delegateObject?.moleculeDelegate?.moleculeLayoutUpdated(self)
|
self.delegateObject?.moleculeDelegate?.moleculeLayoutUpdated(self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user