Create a Diagonal Custom UIView in Swift
<p>I am working on designing custom UIimageview in swift. I want to create a UIimageview using beizerpath  similar to this <a href="https://i.stack.imgur.com/KRVlr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KRVlr.png" alt="enter image description here"></a> </p>

<p>The coding should be in swift.
Any help is appreciated. Thanks</p>