mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Build ChatListUI
This commit is contained in:
18
submodules/LegacyComponents/Sources/TGAttachmentCameraCell.m
Normal file
18
submodules/LegacyComponents/Sources/TGAttachmentCameraCell.m
Normal file
@@ -0,0 +1,18 @@
|
||||
#import "TGAttachmentCameraCell.h"
|
||||
|
||||
NSString *const TGAttachmentCameraCellIdentifier = @"AttachmentCameraCell";
|
||||
|
||||
@implementation TGAttachmentCameraCell
|
||||
|
||||
- (void)attachCameraViewIfNeeded:(TGAttachmentCameraView *)cameraView
|
||||
{
|
||||
if (_cameraView == cameraView)
|
||||
return;
|
||||
|
||||
_cameraView = cameraView;
|
||||
_cameraView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
_cameraView.frame = self.bounds;
|
||||
[self addSubview:cameraView];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user