






#import "PinkDateOurWinCell.h"
#import "FatLargeTempInfo.h"
#import "Masonry.h"
#import "UIColor+YouColor.h"

@implementation PinkDateOurWinCell

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

- (void)setModel:(FatLargeTempInfo *)model
{
    _model = model;
    _menRootLabel.text = model.anyTatarJust;
    _menRootLabel.font = [UIFont systemFontOfSize:model.cookiesMajorDirectionBufferedPageSurrogate];
    _menRootLabel.textColor = [UIColor reclaimReplacedNeverFarExpectedEnds:model.presenceVideoLocalityLeaseBigNatural];
    self.backgroundColor = [[UIColor reclaimReplacedNeverFarExpectedEnds:model.headerSinHostingShutterComposedBounce] colorWithAlphaComponent:model.evaluateAgreementCollectorSlashCapableWeighted];
    self.layer.cornerRadius = 2;
}

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

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

@end
