






#import "HueThinDustPanCell.h"
#import "OpenSubLocalInfo.h"
#import "Masonry.h"
#import "UIColor+AgeColor.h"

@implementation HueThinDustPanCell

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

- (void)setModel:(OpenSubLocalInfo *)model
{
    _model = model;
    _mapBandLabel.text = model.focalWatched;
    _mapBandLabel.font = [UIFont systemFontOfSize:model.clientsOrdinarySessionWorkoutEntropyDay];
    _mapBandLabel.textColor = [UIColor bouncingAppearBundleAwakeBagCaret:model.breakManganeseNegotiateOutputDecryptedEvent];
    self.backgroundColor = [[UIColor bouncingAppearBundleAwakeBagCaret:model.heightRegisterAffiliateSedentaryDisablesProximity] colorWithAlphaComponent:model.golfCertUnderReportedBracketedNumerator];
    self.layer.cornerRadius = 2;
}

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

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

@end
