Skip to content

Commit

Permalink
fix/unowned: replaces unowned with weak reference to self on one asyn…
Browse files Browse the repository at this point in the history
…c closure - fixes AssistoLab#45, fixes AssistoLab#47, fixes AssistoLab#48
  • Loading branch information
Marek Lisik committed Apr 28, 2017
1 parent 25e14b8 commit e920c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DropDown/src/DropDown.swift
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,8 @@ extension DropDown {

tableView.isScrollEnabled = layout.offscreenHeight > 0

DispatchQueue.main.async { [unowned self] in
self.tableView.flashScrollIndicators()
DispatchQueue.main.async { [weak self] in
self?.tableView.flashScrollIndicators()
}

super.updateConstraints()
Expand Down

0 comments on commit e920c8c

Please sign in to comment.