diff --git a/DuckDuckGo/OmniBar.swift b/DuckDuckGo/OmniBar.swift index d12d00d8e9..61850c6f2c 100644 --- a/DuckDuckGo/OmniBar.swift +++ b/DuckDuckGo/OmniBar.swift @@ -384,8 +384,8 @@ class OmniBar: UIView { searchStackContainer.setCustomSpacing(13, after: voiceSearchButton) } - UIView.animate(withDuration: 0.0) { - self.layoutIfNeeded() + UIView.animate(withDuration: 0.0) { [weak self] in + self?.layoutIfNeeded() } }