<div dir="ltr"><div>Here&#39;s demo code for emulating protected in Swift:</div><a href="https://gist.github.com/callionica/19da0763c0b0b4c504fc5f46d07e8ee8">https://gist.github.com/callionica/19da0763c0b0b4c504fc5f46d07e8ee8</a><br><div><br></div></div>