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

27 lines
625 B
Mathematica
Raw Normal View History

2015-10-01 18:19:52 +02:00
#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