






#import "FootFatJoinRunCell.h"
#import "AreOutletOneInfo.h"
#import "Masonry.h"
#import "UIColor+TenColor.h"

@implementation FootFatJoinRunCell

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

- (void)setModel:(AreOutletOneInfo *)model
{
    _model = model;
    _partPopLabel.text = model.milePrepared;
    _partPopLabel.font = [UIFont systemFontOfSize:model.pubDownloadZipTrapEntropyDeferring];
    _partPopLabel.textColor = [UIColor bannerAdaptorDecipherChildrenForOunces:model.landscapeOverlayLettishVeryCommittedMultiple];
    self.backgroundColor = [[UIColor bannerAdaptorDecipherChildrenForOunces:model.pressedBondAmountRadioBelowShe] colorWithAlphaComponent:model.permanentSameBrandDueDescribesRain];
    self.layer.cornerRadius = 2;
}

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

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

@end
