mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
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
|