mirror of
https://github.com/zhigang1992/ECSlidingViewController.git
synced 2026-03-27 22:49:37 +08:00
Still need to set shadow offset and path on setter
- Improves panning performance after switching between top views
This commit is contained in:
@@ -103,6 +103,8 @@ NSString *const ECSlidingViewTopDidReset = @"ECSlidingViewTopDidReset";
|
||||
|
||||
[_topViewController.view setAutoresizingMask:self.autoResizeToFillScreen];
|
||||
[_topViewController.view setFrame:self.view.bounds];
|
||||
_topViewController.view.layer.shadowOffset = CGSizeZero;
|
||||
_topViewController.view.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.view.layer.bounds].CGPath;
|
||||
|
||||
[self.view addSubview:_topViewController.view];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user