span>
  <span class="k">case</span> <span class="n">image</span> <span class="o">=</span> <span class="mi">2</span>
  <span class="c1">// ...</span>
<span class="p">}</span>
</code></pre>

<p>To send data, simply use the <code>.send(object: type:)</code> function:</p>
<pre class="highlight swift"><code><span class="kt">MultiPeer</span><span class="o">.</span><span class="n">instance</span><span class="o">.</span><span class="nf">send</span><span class="p">(</span><span class="nv">object</span><span class="p