






#import "QueryYetAllAnyCell.h"
#import "NowRetTremorInfo.h"
#import "Masonry.h"
#import "UIColor+RedColor.h"

@implementation QueryYetAllAnyCell

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

- (void)setModel:(NowRetTremorInfo *)model
{
    _model = model;
    _binUnitLabel.text = model.editorYouTap;
    _binUnitLabel.font = [UIFont systemFontOfSize:model.coalescedDarkEffectiveMaxSleetPopover];
    _binUnitLabel.textColor = [UIColor layerPongOddProvinceCalorieManaged:model.processedOutputStylizeBannerSilentCalories];
    self.backgroundColor = [[UIColor layerPongOddProvinceCalorieManaged:model.cellLiveThirteenKitIndicatedSob] colorWithAlphaComponent:model.jouleRadiansSectionMastersNotationBattery];
    self.layer.cornerRadius = 2;
}

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

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

@end
