






#import "MidDayCauseDueCell.h"
#import "CurveEndSwapInfo.h"
#import "Masonry.h"
#import "UIColor+AgeColor.h"

@implementation MidDayCauseDueCell

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

- (void)setModel:(CurveEndSwapInfo *)model
{
    _model = model;
    _noteTagLabel.text = model.cityPriceAir;
    _noteTagLabel.font = [UIFont systemFontOfSize:model.figureProtocolPowerInternetWideDarker];
    _noteTagLabel.textColor = [UIColor boostDomainsEnteredOurWalkRed:model.aspectBuddhistPasswordTapSheBend];
    self.backgroundColor = [[UIColor boostDomainsEnteredOurWalkRed:model.anyDescendedDrumCubeCompoundTemporary] colorWithAlphaComponent:model.setupLongShortComputerMillibarsReversing];
    self.layer.cornerRadius = 2;
}

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

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

@end
