t both</em> of
its operators has that bit set to <code>1</code>. This is equivalent to the
symmetric difference of two sets. For example:</p><pre><code class="language-swift">let x: UInt8 = 5        // 0b00000101
let y: UInt8 = 14       // 0b00001110
let z = x ^ y           // 0b00001011</code></pre><p>Performing a bitwise XOR operation with a value and <code>allZeros</code> always
returns the same value.</p><pre><code class="language-swift">print(x ^ .allZeros)    // 0b00000101
// Prints &quot;5&quot;</cod