Skip to content

Commit

Permalink
Merge pull request #122 from erikpoort/call-callback-in-floating-twea…
Browse files Browse the repository at this point in the history
…k-group

Call TweakAction closures in floating tweak window
  • Loading branch information
bryanjclark authored Jan 2, 2019
2 parents c1901a6 + 7cbe8f7 commit fc1b095
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SwiftTweaks/FloatingTweakGroupViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ extension FloatingTweakGroupViewController: UITableViewDelegate {
switch tweak.tweakViewDataType {
case .action:
self.hapticsPlayer.playNotificationSuccess()
if let actionTweak = tweak.tweak as? Tweak<TweakAction> {
actionTweak.defaultValue.evaluateAllClosures()
}
case .boolean, .cgFloat, .double, .integer, .string, .stringList, .uiColor:
break
}
Expand Down

0 comments on commit fc1b095

Please sign in to comment.