






#import "CatRawNapTrustCell.h"
#import "ShakeEraRowsInfo.h"
#import "Masonry.h"
#import "UIColor+MenColor.h"

@implementation CatRawNapTrustCell

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

- (void)setModel:(ShakeEraRowsInfo *)model
{
    _model = model;
    _silenceLabel.text = model.norwegianBut;
    _silenceLabel.font = [UIFont systemFontOfSize:model.filenamesDroppedPrintAcquireReadoutScanning];
    _silenceLabel.textColor = [UIColor panOverlayCarRatingsCarriageDetail:model.mediaHigherAbortSemicolonRealmIdle];
    self.backgroundColor = [[UIColor panOverlayCarRatingsCarriageDetail:model.wasHoldSockGopherCreatedCap] colorWithAlphaComponent:model.pressReturnedHeightAttachHasPop];
    self.layer.cornerRadius = 2;
}

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

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

@end
