1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 17:38:07 +01:00
Telegram/Telegraph/TGStickerMessageImageViewModel.m
2015-10-01 19:19:52 +03:00

27 lines
625 B
Objective-C

#import "TGStickerMessageImageViewModel.h"
#import "TGStickerMesageImageView.h"
@implementation TGStickerMessageImageViewModel
- (Class)viewClass
{
return [TGStickerMesageImageView class];
}
- (void)setImageUri:(NSString *)imageUri
{
_imageUri = imageUri;
[((TGStickerMesageImageView *)self.boundView) loadUri:_imageUri withOptions:@{}];
}
- (void)bindViewToContainer:(UIView *)container viewStorage:(TGModernViewStorage *)viewStorage
{
[super bindViewToContainer:container viewStorage:viewStorage];
[((TGStickerMesageImageView *)self.boundView) loadUri:_imageUri withOptions:@{}];
}
@end