mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
31 lines
666 B
Objective-C
31 lines
666 B
Objective-C
#import "TGChannelModeratorCollectionItem.h"
|
|
|
|
#import "TGChannelModeratorCollectionItemView.h"
|
|
|
|
@implementation TGChannelModeratorCollectionItem
|
|
|
|
- (instancetype)init {
|
|
self = [super init];
|
|
if (self != nil) {
|
|
self.selectable = false;
|
|
self.highlightable = false;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (CGSize)itemSizeForContainerSize:(CGSize)containerSize {
|
|
return CGSizeMake(containerSize.width, 85.0f);
|
|
}
|
|
|
|
- (Class)itemViewClass {
|
|
return [TGChannelModeratorCollectionItemView class];
|
|
}
|
|
|
|
- (void)bindView:(TGCollectionItemView *)view {
|
|
[super bindView:view];
|
|
|
|
[((TGChannelModeratorCollectionItemView *)view) setUser:_user];
|
|
}
|
|
|
|
@end
|