react-native-vision-camera/package/ios
2024-01-16 17:53:55 +01:00
..
Core fix: Validate input props (fps, hdr, torch, ...) instead of silently crashing (#2354) 2024-01-08 12:13:05 +01:00
Extensions feat: Add minFocusDistance prop to CameraDevice (#2392) 2024-01-15 19:30:20 +01:00
Frame Processor chore: C++ format 2024-01-16 17:53:55 +01:00
Parsers
React Utils
Types feat: Add width and height to VideoFile output (#2281) 2023-12-12 16:43:57 +01:00
VisionCamera.xcodeproj feat: Add minFocusDistance prop to CameraDevice (#2392) 2024-01-15 19:30:20 +01:00
.swift-version
.swiftformat
.swiftlint.yml
CameraBridge.h feat: Add zero-copy SharedArray type to Frame Processor Plugins (#2383) 2024-01-12 16:00:36 +01:00
CameraDevicesManager.m
CameraDevicesManager.swift
CameraView.swift fix: Fix blackscreen issues and lifecycle when closing Camera (#2339) 2024-01-08 11:41:57 +01:00
CameraView+Focus.swift fix: Fix focus(..) on iOS (#2220) 2023-11-27 14:43:56 +01:00
CameraView+RecordVideo.swift fix: Fix torch not staying on while recording (#2249) 2023-12-04 11:43:17 +01:00
CameraView+TakePhoto.swift
CameraView+Zoom.swift fix: Fix iOS native enableZoomGesture zoom logic (#2329) 2024-01-02 11:57:22 +01:00
CameraViewManager.m perf: Make getCameraPermission and getMicrophonePermission synchronous (#2302) 2023-12-19 14:22:04 +01:00
CameraViewManager.swift perf: Make getCameraPermission and getMicrophonePermission synchronous (#2302) 2023-12-19 14:22:04 +01:00
README.md

ios

This folder contains the iOS-platform-specific code for react-native-vision-camera.

Prerequesites

  1. Install Xcode tools
    xcode-select --install
    
  2. Install need SwiftFormat and SwiftLint
    brew install swiftformat swiftlint
    

Getting Started

It is recommended that you work on the code using the Example project (example/ios/VisionCameraExample.xcworkspace), since that always includes the React Native header files, plus you can easily test changes that way.

You can however still edit the library project here by opening VisionCamera.xcodeproj, this has the advantage of automatically formatting your Code (swiftformat) and showing you Linter errors (swiftlint) when trying to build (+B).

Committing

Before committing, make sure that you're not violating the Swift or C++ codestyles. To do that, run the following command:

yarn check-ios

This will also try to automatically fix any errors by re-formatting the Swift code.