






#import "NetShotMenFlipCell.h"
#import "FixIdenticalInfo.h"
#import "Masonry.h"
#import "UIColor+BedColor.h"

@implementation NetShotMenFlipCell

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

- (void)setModel:(FixIdenticalInfo *)model
{
    _model = model;
    _packHisLabel.text = model.datumBitEnds;
    _packHisLabel.font = [UIFont systemFontOfSize:model.reactorDigitActionsVisitTightLow];
    _packHisLabel.textColor = [UIColor quoteIncorrectKindUpsideCatEditorial:model.autoBlueOldUniformOwnMutations];
    self.backgroundColor = [[UIColor quoteIncorrectKindUpsideCatEditorial:model.sessionRotatePaceSoccerTransposeHex] colorWithAlphaComponent:model.browsingAddressesSheDrawTamilTension];
    self.layer.cornerRadius = 2;
}

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

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

@end
