You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added these changes to the code and it seems to work. But I am not sure wether it's correct way to do so?
// Create some shadowing
if (ShadowEnabled)
{
var frame = ContainerView.Layer.Bounds;
frame.Height = UIScreen.MainScreen.Bounds.Height > UIScreen.MainScreen.Bounds.Width ? UIScreen.MainScreen.Bounds.Height : UIScreen.MainScreen.Bounds.Width;
ContainerView.Layer.ShadowOffset = new CGSize(-5, 0);
ContainerView.Layer.ShadowPath = UIBezierPath.FromRect(frame).CGPath;
ContainerView.Layer.ShadowRadius = 3.0f;
ContainerView.Layer.ShadowColor = UIColor.Black.CGColor;
}
The text was updated successfully, but these errors were encountered:
I added these changes to the code and it seems to work. But I am not sure wether it's correct way to do so?
// Create some shadowing
if (ShadowEnabled)
{
var frame = ContainerView.Layer.Bounds;
frame.Height = UIScreen.MainScreen.Bounds.Height > UIScreen.MainScreen.Bounds.Width ? UIScreen.MainScreen.Bounds.Height : UIScreen.MainScreen.Bounds.Width;
ContainerView.Layer.ShadowOffset = new CGSize(-5, 0);
ContainerView.Layer.ShadowPath = UIBezierPath.FromRect(frame).CGPath;
ContainerView.Layer.ShadowRadius = 3.0f;
ContainerView.Layer.ShadowColor = UIColor.Black.CGColor;
}
The text was updated successfully, but these errors were encountered: