






#import "FaceLocaleItemCell.h"
#import "PutCycleWireInfo.h"
#import "Masonry.h"
#import "UIColor+SpaColor.h"

@implementation FaceLocaleItemCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        
        self.clipsToBounds = YES;
        
        [self addSubview:self.dateDidLabel];
        
        [self.dateDidLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsMake(0, 4, 0, 0));
        }];
        
    }
    return self;
}

- (void)setModel:(PutCycleWireInfo *)model
{
    _model = model;
    _dateDidLabel.text = model.ownContainer;
    _dateDidLabel.font = [UIFont systemFontOfSize:model.centralsCarLongerBufferingMarkVisit];
    _dateDidLabel.textColor = [UIColor bufferVariationMindShadowAscentTrash:model.hiddenTemplateCadenceIdenticalDelayPlate];
    self.backgroundColor = [[UIColor bufferVariationMindShadowAscentTrash:model.stripUnifyContextLayoutActionsTeeth] colorWithAlphaComponent:model.exemplarSelectVariationBandwidthSlovenianManual];
    self.layer.cornerRadius = 2;
}

- (void)ditherSheNominallyDiscoverDrain:(void(^)(void))animations completion:(void(^)(BOOL))completion {
    PutCycleWireInfo *info = (PutCycleWireInfo *)_model;
    if ([info isKindOfClass:[PutCycleWireInfo class]] && info.zoomingBitsArtsWakeRule > 0) {
        self.transform = CGAffineTransformMakeTranslation(-info.zoomingBitsArtsWakeRule, 0);
    }
    [super ditherSheNominallyDiscoverDrain:animations completion:completion];
}

- (UILabel *)dateDidLabel {
    if (!_dateDidLabel) {
        _dateDidLabel = [[UILabel alloc] init];
        _dateDidLabel.backgroundColor = [UIColor clearColor];
        _dateDidLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _dateDidLabel;
}

@end
