Skip to content

Commit

Permalink
Call TweakAction closures in floating tweak window
Browse files Browse the repository at this point in the history
  • Loading branch information
erikpoort committed Dec 14, 2018
1 parent c1901a6 commit 7cbe8f7
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 7cbe8f7

Please sign in to comment.