how to copy one view to another view in Swift
<p>I want to copy one UIView to another view without making it archive or unarchive.
Please help me if you have any solution.</p>

<p>I tried with by making an extension of UIView as already available an answer on Stack over flow. But its crashing when I pass the view with pattern Image Background color. </p>