






#import "MagnitudeDigitCell.h"
#import "IgnoredTotalInfo.h"
#import "Masonry.h"
#import "UIColor+KitColor.h"

@implementation MagnitudeDigitCell

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

- (void)setModel:(IgnoredTotalInfo *)model
{
    _model = model;
    _fontManLabel.text = model.mobileOldSix;
    _fontManLabel.font = [UIFont systemFontOfSize:model.organizeExportedAttachSatisfiedNumericTwo];
    _fontManLabel.textColor = [UIColor evictionCreditAgeRejectHebrewStable:model.gaelicBadPubThemeTriangleFade];
    self.backgroundColor = [[UIColor evictionCreditAgeRejectHebrewStable:model.ropeSortJoiningNormalWeekdayNot] colorWithAlphaComponent:model.profilesDenseHandoffUnlikelyLowerTeaspoons];
    self.layer.cornerRadius = 2;
}

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

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

@end
