Skip to content

Commit

Permalink
make completionHandler of show function inside MaterialShowcase class…
Browse files Browse the repository at this point in the history
… into optional chaining
  • Loading branch information
Tuyen Le committed Nov 5, 2019
1 parent fd97288 commit 49504dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions MaterialShowcase/MaterialShowcase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ extension MaterialShowcase {
alpha = backgroundAlpha
}
// Handler user's action after showing.
if let handler = handler {
handler()
}
handler?()
}

}
Expand Down

0 comments on commit 49504dd

Please sign in to comment.