Files
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

62 lines
1.1 KiB
Objective-C

#import "TGNeoViewModel.h"
@interface TGNeoViewModel ()
{
NSMutableArray *_submodels;
}
@end
@implementation TGNeoViewModel
- (instancetype)init
{
self = [super init];
if (self != nil)
{
_submodels = [[NSMutableArray alloc] init];
}
return self;
}
- (CGRect)bounds
{
return CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
}
- (NSArray *)submodels
{
return _submodels;
}
- (void)addSubmodel:(TGNeoViewModel *)viewModel
{
[_submodels addObject:viewModel];
}
- (void)removeSubmodel:(TGNeoViewModel *)viewModel
{
[_submodels removeObject:viewModel];
}
- (void)drawInContext:(CGContextRef)context
{
[self drawSubmodelsInContext:context];
}
- (void)drawSubmodelsInContext:(CGContextRef)context
{
for (TGNeoViewModel *submodel in self.submodels)
{
CGContextTranslateCTM(context, submodel.frame.origin.x, submodel.frame.origin.y);
[submodel drawInContext:context];
CGContextTranslateCTM(context, -submodel.frame.origin.x, -submodel.frame.origin.y);
}
}
- (CGSize)contentSizeWithContainerSize:(CGSize)containerSize
{
return CGSizeZero;
}
@end