I need to recreate the nested dictionary below in code but I am stuck even though I found many questions on the topic.
This is the Dictionary I need to recreate but I am stuck on the "action" string.
This is my dictionary
var buttonactions: [String:[[String:[String:String]]]] = [:]
and this is how I update the value for testing and "marker" is my class which stores my button actions
marker.buttonactions.updateValue([["Action" : ["array linked of buttons" : "actionKey"]]], forKey: "button actions array")
I am slightly confused how to set up the "action" as a string and "array linked of buttons"
Any help would be great thanks.