I am quite new to swift, but I have worked a bit in php, html, css, sql and so on. In php I used to do these loops with html/css like below and filling out with data from my database. I know how to do loops, but do not know how to use them like I did in php
<?php for ($i=0; $i < sizeof($array1); $i++) { ?>
<div class="article">
<h1 class="title"><?php echo $array1[$i] ?></h1>
<p><?php echo $array2[$i] ?></p>
</div>
<?php } ?>
Are there anyway to do something like this in swift/xcode? Maybe I just need an alternative to the "div" in swift.
This might be a stupid question, but I still hope you can helt me :)