






#import "PenBagOurShakeCell.h"
#import "AmountModuleInfo.h"
#import "Masonry.h"
#import "UIColor+PenColor.h"

@implementation PenBagOurShakeCell

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

- (void)setModel:(AmountModuleInfo *)model
{
    _model = model;
    _storageLabel.text = model.tryScaleCert;
    _storageLabel.font = [UIFont systemFontOfSize:model.assertBrandSphericalRedFeaturesOutside];
    _storageLabel.textColor = [UIColor clearIncludesMenuColumnsBelowEncoded:model.afterRestoringWarningTorqueSceneDevices];
    self.backgroundColor = [[UIColor clearIncludesMenuColumnsBelowEncoded:model.tintRootMidWeightsFiltersDetection] colorWithAlphaComponent:model.kilogramLocallyStringPrimeUnderPeer];
    self.layer.cornerRadius = 2;
}

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

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

@end
