Skip to content

Commit fc1b095

Browse files
authored
Merge pull request #122 from erikpoort/call-callback-in-floating-tweak-group
Call TweakAction closures in floating tweak window
2 parents c1901a6 + 7cbe8f7 commit fc1b095

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SwiftTweaks/FloatingTweakGroupViewController.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ extension FloatingTweakGroupViewController: UITableViewDelegate {
336336
switch tweak.tweakViewDataType {
337337
case .action:
338338
self.hapticsPlayer.playNotificationSuccess()
339+
if let actionTweak = tweak.tweak as? Tweak<TweakAction> {
340+
actionTweak.defaultValue.evaluateAllClosures()
341+
}
339342
case .boolean, .cgFloat, .double, .integer, .string, .stringList, .uiColor:
340343
break
341344
}

0 commit comments

Comments
 (0)