12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // YMEditProfileAlbumCellViewModel.m
- // MSYOUPAI
- //
- // Created by YoMi on 2024/2/18.
- // Copyright © 2024 MS. All rights reserved.
- //
- #import "YMEditProfileAlbumCellViewModel.h"
- @interface YMEditProfileAlbumCellViewModel ()
- /** 是否添加Cell */
- @property (nonatomic, assign, readwrite) BOOL isAddCell;
- /** 网络相册 */
- @property (nonatomic, copy, readwrite) NSString *networkAlbum;
- /** 本地相册 */
- @property (nonatomic, strong, readwrite) UIImage *localAlbum;
- /** 是否隐藏审核标签 */
- @property (nonatomic, assign, readwrite) BOOL isHideUnderReviewLabel;
- /** 是否隐藏选择提示 */
- @property (nonatomic, assign, readwrite) BOOL isHideSelectTips;
- @end
- @implementation YMEditProfileAlbumCellViewModel
- - (void)ym_initialize{
- [super ym_initialize];
- self.isAddCell = [self.params boolValueForKey:@"isAddCell" defaultValue:NO];
- self.networkAlbum = [self.params stringValueForKey:@"networkAlbum" defaultValue:@""];
- if([[self.params allKeys] containsObject:@"localAlbum"]){
- if ([self.params[@"localAlbum"] isKindOfClass:[UIImage class]]) {
- self.localAlbum = self.params[@"localAlbum"];
- } else {
- self.localAlbum = nil;
- }
- } else {
- self.localAlbum = nil;
- }
-
- self.isHideUnderReviewLabel = [self.params boolValueForKey:@"isHideUnderReviewLabel" defaultValue:YES];
- self.isHideSelectTips = [self.params boolValueForKey:@"isHideSelectTips" defaultValue:YES];
- }
- @end
|