Swift xcode dynamically adding text inputs in view
<p>I am relatively new to swift and have been used to a JavaScript environment so correct me if it is not possible, but is there a way to dynamically add rows of text inputs and thus data in the form of a nested dictionary, from the view via a button?</p>

<p>I am looking to create an object with no set constraints on the limitations of data. </p>

<p>Essentially the object would be structured as:</p>

<pre><code>"Object1": ["row1":[desc: "desc1", option: "option1"]]
</code></pre>

<p>and when a user adds a row through a UIButton:</p>

<pre><code>"Object1": ["row1":[desc: "desc1", option: "option1"], "row2": [desc: "desc2", option: "option2"]]
</code></pre>

<p>and so on....</p>

<p><a href="http://i.stack.imgur.com/e4Ury.png" rel="nofollow">Image example of what I am looking to achieve</a></p>

<p>Thank you for any input provided.</p>