Я хочу создать вид ниже на AVCaptureVideoPreviewLayer камеры

Мой код
CGFloatframeWidth = self.bounds.size.width - 2 * self.frameOffset; если (!self.dataReadingFrame) { self.dataReadingFrame = [[UIView alloc] initWithFrame:CGRectMake(0, 0,frameWidth, self.frameHeight)]; // self.dataReadingFrame.center = self.center; self.dataReadingFrame.backgroundColor = [UIColorclearColor]; [self createCustomFramesForView:self.dataReadingFrame]; [self addSubview:self.dataReadingFrame]; [self startAnimatingScanner:self.dataReadingFrame]; [self addVisualEffects:self.dataReadingFrame.frame]; CGRectvisibleRect = [self.previewLayer метаданныеOutputRectOfInterestForRect:self.dataReadingFrame.frame]; self.metadataOutput.rectOfInterest =visibleRect; self.previewLayer.cornerRadius = 20; - (void)createCustomFramesForView:(UIView *)frameView { CGFloat angularSize = 40.f; CGFloat angularWidth = 4.f; для (int я = 0; я
Мобильная версия