Skip to content

Commit

Permalink
Use weak for layout in Omnibar
Browse files Browse the repository at this point in the history
  • Loading branch information
afterxleep committed Nov 1, 2024
1 parent 4e2a7ce commit a8d5181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGo/OmniBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

}
Expand Down

0 comments on commit a8d5181

Please sign in to comment.