






#import "KitPeakOutLoudCell.h"
#import "ParsecsRomanInfo.h"
#import "Masonry.h"
#import "UIColor+SexColor.h"

@implementation KitPeakOutLoudCell

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

- (void)setModel:(ParsecsRomanInfo *)model
{
    _model = model;
    _nearPubLabel.text = model.editSonMolar;
    _nearPubLabel.font = [UIFont systemFontOfSize:model.itsTwoStoodMaintainReasonAction];
    _nearPubLabel.textColor = [UIColor highOverhangMayLabelSegmentsEncrypt:model.flowNumeratorPipeFloatNiacinDivide];
    self.backgroundColor = [[UIColor highOverhangMayLabelSegmentsEncrypt:model.energyQueryingAssistantPacketChapterSurge] colorWithAlphaComponent:model.funkDanishPutFormWeekdayDistant];
    self.layer.cornerRadius = 2;
}

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

@end
