






#import "CurlLevelPasteCell.h"
#import "TenPubIndoorInfo.h"
#import "Masonry.h"
#import "UIColor+EndColor.h"

@implementation CurlLevelPasteCell

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

- (void)setModel:(TenPubIndoorInfo *)model
{
    _model = model;
    _bankWhoLabel.text = model.ourPickerOld;
    _bankWhoLabel.font = [UIFont systemFontOfSize:model.exemplarCousinCopperAbsentSharpnessReady];
    _bankWhoLabel.textColor = [UIColor sourcesCutoffOverlapExtensionLeakyBuddy:model.foldSixLatitudeParseStickyFunction];
    self.backgroundColor = [[UIColor sourcesCutoffOverlapExtensionLeakyBuddy:model.hitTraveledInheritedLexicalEnsureDecoder] colorWithAlphaComponent:model.croatianConsumerRecordingKindWrapperEqual];
    self.layer.cornerRadius = 2;
}

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

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

@end
