






#import "DaysSonPartTabCell.h"
#import "LaunchIllCupInfo.h"
#import "Masonry.h"
#import "UIColor+KeyColor.h"

@implementation DaysSonPartTabCell

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

- (void)setModel:(LaunchIllCupInfo *)model
{
    _model = model;
    _barPortLabel.text = model.ownerAgeTone;
    _barPortLabel.font = [UIFont systemFontOfSize:model.germanMongolianDetailedJobMilesNominal];
    _barPortLabel.textColor = [UIColor laotianEventualCombinedPreparedMutationThat:model.yardRouterMutationHighDisableWin];
    self.backgroundColor = [[UIColor laotianEventualCombinedPreparedMutationThat:model.putStylizePermuteHeavyIcyComplex] colorWithAlphaComponent:model.spectralMaintainCostAllocatedSequencerFastest];
    self.layer.cornerRadius = 2;
}

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

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

@end
