appView update

This commit is contained in:
TrueZhuanjia
2025-07-17 02:05:05 +08:00
parent 5e40c9f9ad
commit 3dccec3739
7 changed files with 120 additions and 33 deletions
@@ -2001,7 +2001,7 @@ static NSMutableSet* hostList;
if (appView.bounds.size.width > 10.0) {
CGFloat scale = cell.bounds.size.width / appView.bounds.size.width;
[appView setCenter:CGPointMake(appView.bounds.size.width / 2 * scale, appView.bounds.size.height / 2 * scale)];
appView.transform = CGAffineTransformMakeScale(scale, scale);
appView.transform = CGAffineTransformMakeScale(scale, scale); // view resize
}
[cell.subviews.firstObject removeFromSuperview]; // Remove a view that was previously added
@@ -2009,15 +2009,15 @@ static NSMutableSet* hostList;
// [self.settingsButton setEnabled:![self isIPhonePortrait]]; // update settings button after host is clicked & appview loaded
// Shadow opacity is controlled inside UIAppView based on whether the app
// is hidden or not during the update cycle.
UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRect:cell.bounds];
cell.layer.masksToBounds = NO;
cell.layer.shadowColor = [UIColor blackColor].CGColor;
cell.layer.shadowOffset = CGSizeMake(1.0f, 5.0f);
cell.layer.shadowPath = shadowPath.CGPath;
//UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRect:cell.bounds];
//cell.layer.masksToBounds = YES;
//cell.layer.shadowColor = [UIColor blackColor].CGColor;
//cell.layer.shadowOffset = CGSizeMake(1.0f, 5.0f);
//cell.layer.shadowPath = shadowPath.CGPath;
#if !TARGET_OS_TV
cell.layer.borderWidth = 1;
cell.layer.borderColor = [[UIColor colorWithRed:0 green:0 blue:0 alpha:0.3f] CGColor];
//cell.layer.borderWidth = 1;
//cell.layer.borderColor = [[UIColor colorWithRed:0 green:0 blue:0 alpha:0.3f] CGColor];
cell.exclusiveTouch = YES;
#endif