






#import "SockMarkupTimeCell.h"
#import "DetachVolumeInfo.h"
#import "Masonry.h"
#import "UIColor+CanColor.h"

@implementation SockMarkupTimeCell

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

- (void)setModel:(DetachVolumeInfo *)model
{
    _model = model;
    _specifyLabel.text = model.routeAzimuth;
    _specifyLabel.font = [UIFont systemFontOfSize:model.adaptivePaceTransformFixGreekRendered];
    _specifyLabel.textColor = [UIColor petiteWalkingApplierDeltaAvailBin:model.specifiedPrefixesLocalAuditItemAutomatic];
    self.backgroundColor = [[UIColor petiteWalkingApplierDeltaAvailBin:model.butterflyBuiltChangeThatNoticeSub] colorWithAlphaComponent:model.cutLibrariesAmericanStrengthBendCompared];
    self.layer.cornerRadius = 2;
}

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

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

@end
