mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-01 19:00:39 +00:00
git-subtree-dir: submodules/LegacyComponents git-subtree-mainline:6086305304git-subtree-split:d559434616
19 lines
493 B
Objective-C
19 lines
493 B
Objective-C
#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
|