diff --git a/MVMCoreUI/Atomic/Atoms/Views/Tilelet.swift b/MVMCoreUI/Atomic/Atoms/Views/Tilelet.swift index 72b3a07a..8b7fc312 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/Tilelet.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/Tilelet.swift @@ -49,7 +49,6 @@ open class Tilelet: VDS.Tilelet, VDSMoleculeViewProtocol{ badgeModel = viewModel.badge descriptiveIconModel = viewModel.descriptiveIcon directionalIconModel = viewModel.directionalIcon - //setup action if let action = viewModel.action { //add the subscriber @@ -87,7 +86,8 @@ open class Tilelet: VDS.Tilelet, VDSMoleculeViewProtocol{ open override func layoutSubviews() { super.layoutSubviews() // 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) } }