Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

how to create FBTweakAction without using macro #129

Open
vishundayal opened this issue Jan 13, 2019 · 0 comments
Open

how to create FBTweakAction without using macro #129

vishundayal opened this issue Jan 13, 2019 · 0 comments

Comments

@vishundayal
Copy link

Hi,
I am trying to add tweaks in swift, so cant use macros. I am able to add text and switch type tweaks but not able to add action.
Although in swift, there are more option with SwiftTweaks, I dont want to add another pod.
This is how I am trying, can somebody please tell what I am doing wrong?

let tweak = FBTweak(identifier: key)
tweak.name = key
tweak.defaultValue = {
                        debugPrint("hello value")            
  UIApplication.topViewController()?.navigationController?.pushViewController(AnalyticsLogTableViewController(), animated: true)
                    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant