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

how to create FBTweakAction without using macro #129

@vishundayal

Description

@vishundayal

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)
                    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions