           <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">viewModelMapping</span><span class="p">(</span><span class="n">fromCandidates</span> <span class="nv">candidates</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Classes/ViewModelMapping.html">ViewModelMapping</a></span><span class="p">],</span> <span class="n">forModel</span>