






#import "RowFeedWonLoveCell.h"
#import "SpineSettingInfo.h"
#import "Masonry.h"
#import "UIColor+OwnColor.h"

@implementation RowFeedWonLoveCell

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

- (void)setModel:(SpineSettingInfo *)model
{
    _model = model;
    _endSignLabel.text = model.looperButWin;
    _endSignLabel.font = [UIFont systemFontOfSize:model.binFloatNeverPoolExistingCovariant];
    _endSignLabel.textColor = [UIColor waitEnteredAirTransformDiscoverFace:model.foldIntervalsChainReplaceTotalRemaining];
    self.backgroundColor = [[UIColor waitEnteredAirTransformDiscoverFace:model.uploadingOnlyExtensionModalMagicCube] colorWithAlphaComponent:model.loopsTraitItsSerifStartMindful];
    self.layer.cornerRadius = 2;
}

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

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

@end
