-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closure on completion of presentation #9
Comments
If I make private class TooltipSpotlight : AwesomeSpotlight {
var completion: (() -> Swift.Void)? = nil
} |
@markst, for this purpose you can implement the delegate protocol methods (don't forget assign delegate to AwesomeSpotlightView
Will this solve your problem? |
@aleksandrshoshiashvili well combined with the example above: func spotlightView(_ spotlightView: AwesomeSpotlightView, didNavigateToIndex index: Int) {
if let tooltipSpotlight = spotlightView.spotlightsArray[index] as? TooltipSpotlight {
tooltipSpotlight.completion?()
}
} but for this to be possible |
I'd like to be able to perform a closure after a Spotlight has completed presentation.
The text was updated successfully, but these errors were encountered: