IOS: How to make a shadow for UIView on 4 side (top,right,bottom and left)
<p>I am using the code below to make the shadow for my <code>ImageView</code></p>

<pre><code>UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRect:self.avatarImageView.bounds];
self.avatarImageView.layer.masksToBounds = NO;
self.avatarImageView.layer.shadowColor = [UIColor blackColor].CGColor;
self.avatarImageView.layer.shadowOffset = CGSizeMake(5.0f, 5.0f);
self.avatarImageView.layer.shadowOpacity = 0.8f;
self.avatarImageView.layer.shadowPath = shadowPath.CGPath;
</code></pre>

<p>It will drop a shadow in the right and bottom like this image. </p>

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

<p>Now I want to make my <code>ImageView</code> also have a shadow in top and left.
What should I change in code?
Is possible to make the view contains shadow in top,right,bottom,left by config in code only or I need to create other layout view for shadow? Any help would be great appreciated.</p>

<p>Here is what I want to achieve<br>
<a href="https://i.stack.imgur.com/FidS2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FidS2.png" alt="enter image description here"></a></p>

<p><strong>Update</strong><br>
Thank @Dipen Panchasara for give a simple solution. Follow @Dipen Panchasara (with the shadow color is black) I will have the shadow image like this<br>
<a href="https://i.stack.imgur.com/Gch8J.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Gch8J.png" alt="enter image description here"></a></p>