I am trying to access some values in a dictionary I made from Firebase snapshot, I use these values to access some document in my firestore, but these ...
I am trying to access some values in a dictionary I made from Firebase snapshot, I use these values to access some document in my firestore, but these ...
I have built a survey using laanlabs/SwiftSurvey and I am able to get the results from the surveyComplete method as a dictionary. The results return ...
I'm trying to load a plist (keys are unique words, values are their English-language definitions) into a dictionary. I can do a one-off like this: ...
I’m trying to access indices of an NSDictionary, and convert that key’s value to an Int using Swift. I’m also using an API to fetch data. The API res ...
I would like to define a function in swift that can be used in objective-c as well. I have a enum: And the function is: This function will bring ...
This is my json: As you can see there are 1 extra attributes in the 1st dictionary. Now I want to make an object for this kind of dictionary where ...
I wrote two functions in Objective-C to generate a key pair with method SecKeyCreateRandomKey. In one I use the NSDictionary in another CFMutableDicti ...
Say I had a class called Example, it conforms to Hashable via its ID attribute. I have an Example object exam1, with ID = 6 and name = "goon". I set ...
i tried to get tempFileName from URLSession error and decode resumeData to a dictionary with below code resumeDictionary contains below string ...
I've been reading around trying to understand it. You can see here dictionaryWithObjects:objects the takes an array of Objects and Keys: NSDictionary ...
I have an app which will take a plain text file, and for each question, create an entry in a PLIST file with different choices for answers, etc. I hav ...
I have a example 2 struct below, And I try create Person object from dictionary, I get a crash Invalid type in JSON write (__SwiftValue)', I unders ...
I'm trying to extract data out of a Dictionary<String, Any> in Swift. The dictionary returns the following when I run NSLog("\(terminalDict)"): ...
I have a string which contains a json in the following format: var myString: String = "{key1: val1, key2: val2}" How can I convert this to: var myJ ...
I have this code Where args is NSMutableDictionary. args value in my dictionary is NO but when I set to BOOL showSetupScreen = [args valueForKey:@ ...
How to access my Model from ViewController and use the Model data to load in table view???? Source Code Link My ViewController looks like this an ...
So for Userdefaults.standard, I stored dictionaries for some keys, but I don't know how to access the values from it. For those keys, value is supp ...
I need to get all keys of a Dictionary with its values. for example I have a dictionary like: I want to get its key values so I implement it like ...
I just want to be able to send a notification to users subscribed to a certain topic with no errors. Here is my function I use to try to accomplish t ...
I am very new to swift. I need to create the below JSON format Currently I am using enum to convert my data to JSON format. The issue with this is ...