






#import "RotorEastCivilCell.h"
#import "StylusEggFitInfo.h"
#import "Masonry.h"
#import "UIColor+FitColor.h"

@implementation RotorEastCivilCell

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

- (void)setModel:(StylusEggFitInfo *)model
{
    _model = model;
    _neutralLabel.text = model.treeOpposite;
    _neutralLabel.font = [UIFont systemFontOfSize:model.bagSelectorGivenLemmaUnlearnPage];
    _neutralLabel.textColor = [UIColor responsesLatvianSceneSeeDiscardedEntities:model.liftMasteringDeltaLocalityMaleParent];
    self.backgroundColor = [[UIColor responsesLatvianSceneSeeDiscardedEntities:model.thumbnailRepeatManFarEndExpert] colorWithAlphaComponent:model.truncatesJouleExpiresSawGenericsCurl];
    self.layer.cornerRadius = 2;
}

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

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

@end
