Relative Content

Tag Archive for swiftstruct

function to mutable property value based on key path in swift

I am writing some requests that I need to convert json string as input to some type of Codable as payload. however, based on the different requests I need to mutable property value. Like following. How can I create a function to update the value based on the path of property? like update(“email”, “update email”), update(“address[1].zipcode”, 01112)