//
//  KBCategoryTitleImageCell.m
//  keyBoard
//
//  Sets `contentView.layer.cornerRadius = 4` for title+image cells, so the
//  background color that JXCategoryView applies is shown as a rounded rect.
//

#import "KBCategoryTitleImageCell.h"

@implementation KBCategoryTitleImageCell

- (void)initializeViews {
    [super initializeViews];
    // Round the cell background once; keep clipping within the rounded rect.
    self.contentView.layer.cornerRadius = 4.0;
    self.contentView.layer.masksToBounds = YES;
}

// Defensive: if layout changes reset layer (some frameworks tweak layers in layout)
- (void)layoutSubviews {
    [super layoutSubviews];
    self.contentView.layer.cornerRadius = 4.0;
    self.contentView.layer.masksToBounds = YES;
}

@end

