Get lighter and darker color variations for a given UIColor
<p>How to get different lighter and darker variations of a given UIColor in Swift?</p>

<p><a href="https://i.stack.imgur.com/zVrrf.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/zVrrf.jpg" alt="enter image description here"></a></p>