zinlinphyo var document : [String : Any] = [:] document = [ "name" : "mg mg", "email" : "mgmg@gmail.com", "age" : 24] document array ထဲကို နောက်ထပ် row တစ်ခုကို ဘယ်လို insert လုပ်လို့ရနိုင်မလဲ? condition check ပြီးတဲ့အချိန်မှာ append လုပ်ချင်တာ ဒါပေမဲ့ append method က ဒီလိုပုံစံမှာ အလုပ်မလုပ်လို့ Example: if gender.elementsEqual("male") { document.append("gender" : "male") } else { document.append("gender" : "female") }
zinlinphyo I've found answer. It's very simply to add new row to Dictionary Array. Just assign a value to the key. If the key is already exist it'll override new value else it'll add a new key value pair. document["gender"] = "male"