






#import "ShowEntryChunkCell.h"
#import "OpenDidStripInfo.h"
#import "Masonry.h"
#import "UIColor+SeeColor.h"

@implementation ShowEntryChunkCell

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

- (void)setModel:(OpenDidStripInfo *)model
{
    _model = model;
    _pronounLabel.text = model.recoverySkin;
    _pronounLabel.font = [UIFont systemFontOfSize:model.preservesDictationDublinFloatingTableExpire];
    _pronounLabel.textColor = [UIColor streamsOverhangAwayLazyTraveledGigabits:model.penGigahertzClipReloadHostingTeacher];
    self.backgroundColor = [[UIColor streamsOverhangAwayLazyTraveledGigabits:model.betterTakeClippingDesiredOffsetsEvict] colorWithAlphaComponent:model.esperantoPatchChargeDefineNumeratorImmediate];
    self.layer.cornerRadius = 2;
}

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

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

@end
