






#import "SpaYardEndsBinCell.h"
#import "TapJabberPubInfo.h"
#import "Masonry.h"
#import "UIColor+GetColor.h"

@implementation SpaYardEndsBinCell

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

- (void)setModel:(TapJabberPubInfo *)model
{
    _model = model;
    _dustSawLabel.text = model.itsStereoRet;
    _dustSawLabel.font = [UIFont systemFontOfSize:model.generateFaceRearTryDirectoryMicro];
    _dustSawLabel.textColor = [UIColor nearbyZipBayerMonthLowDrum:model.sensitiveDogRawInsteadStretchHalf];
    self.backgroundColor = [[UIColor nearbyZipBayerMonthLowDrum:model.sheetPlanDeclineHyphensBagCadence] colorWithAlphaComponent:model.brushBookmarksTheCollapseOutOverlay];
    self.layer.cornerRadius = 2;
}

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

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

@end
