1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGChannelModeratorCollectionItem.m
2015-10-01 19:19:52 +03:00

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