// // RQHomeSubPageVideoItemViewModel.m // JSJP // // Created by 张嵘 on 2021/11/9. // #import "RQHomeSubPageVideoItemViewModel.h" @interface RQHomeSubPageVideoItemViewModel () @property (nonatomic, readwrite, strong) VideosItem *videosItem; @end @implementation RQHomeSubPageVideoItemViewModel - (instancetype)initWithVideosItem:(VideosItem *)videosItem { if (self = [super init]) { self.videosItem = videosItem; CGFloat cellWidth = (RQ_SCREEN_WIDTH - (16 * 2) - 11) / 2.f; self.itemSize = CGSizeMake(cellWidth, cellWidth * (16.f / 9.f)); } return self; } @end