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
[self addSubview: shadowContainerView]; //this line make the program so slow and lag
[shadowContainerView addSubview:_frontImgView];
_frontImgView.center = shadowContainerView.center;
The text was updated successfully, but these errors were encountered:
Hi, sorry for the late response. Do you actually found a way to make things smoother?
At which moment do you add the subview in your View?
The shadow radius is a demanding parameter, did you try to low it down?
When I add the shadowContainerView be the subview.
It's so slow and feel lag.
ShadowView *shadowContainerView = [[ShadowView alloc] init];
shadowContainerView.frame = self.bounds;
shadowContainerView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
shadowContainerView.shadowOffset = CGSizeMake(0, self.shadowOffset);
shadowContainerView.shadowRadius = self.radius;
shadowContainerView.shadowScale = 0.9;
CGRect frame = self.frame;
frame.size.height = self.height+self.shadowOffset;
self.frame = frame;
[self addSubview: shadowContainerView]; //this line make the program so slow and lag
[shadowContainerView addSubview:_frontImgView];
_frontImgView.center = shadowContainerView.center;
The text was updated successfully, but these errors were encountered: