1234567891011121314151617181920212223 |
- //
- // ASProductListViewModel.m
- // Asteria
- //
- // Created by iOS on 2023/6/12.
- //
- #import "ASProductListViewModel.h"
- @implementation ASProductListViewModel
- - (NSArray<ASProductBaseModel *> *)productList {
- if (!_productList) {
- NSMutableArray *arr = [NSMutableArray array];
- for (int i=0; i<arc4random()%20*2; i++) {
- [arr addObject:[ASProductBaseModel demoModel]];
- }
- _productList = arr;
- }
- return _productList;
- }
- @end
|