Skip to content

Commit

Permalink
Change timing of calling didDismiss
Browse files Browse the repository at this point in the history
  • Loading branch information
ykrods committed Mar 26, 2020
1 parent ae4a275 commit 12050a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Spotlight/Sources/SpotlightViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ extension SpotlightViewController {
}

func dismissSpotlight() {
dismiss(animated: true, completion: nil)
delegate?.didDismiss()
dismiss(animated: true) {
self.delegate?.didDismiss()
}
}
}

0 comments on commit 12050a9

Please sign in to comment.