// // NYClassRoomPeiCell.m // jiaPei // // Created by Ning.ge on 2024/2/4. // Copyright © 2024 JCZ. All rights reserved. // #import "NYClassRoomPeiCell.h" #import "NYClassRoomPeiViewModel.h" @interface NYClassRoomPeiCell () @property (nonatomic, readwrite, strong) NYClassRoomPeiViewModel *viewModel; @end @implementation NYClassRoomPeiCell #pragma mark - PublicMethods + (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath { static NSString *ID = @"NYClassRoomPeiCell"; [collectionView registerNib:[UINib nibWithNibName:ID bundle:nil] forCellWithReuseIdentifier:ID]; NYClassRoomPeiCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:ID forIndexPath:indexPath]; if (!cell) cell = [self rq_viewFromXib]; return cell; } - (void)bindViewModel:(NYClassRoomPeiViewModel *)viewModel { self.viewModel = viewModel; } #pragma mark - SystemMethods - (void)awakeFromNib { [super awakeFromNib]; self.contentView.backgroundColor = UIColor.clearColor; _px00_view.layer.shadowColor = RGBA_COLOR(124, 129, 136, 0.2).CGColor; _px01_view.layer.shadowColor = RGBA_COLOR(124, 129, 136, 0.2).CGColor; } @end