Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions package/ios/Core/CameraConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ final class CameraConfiguration {
/**
Throw this to abort calls to configure { ... } and apply no changes.
*/
@frozen
enum AbortThrow: Error {
case abort
}
Expand Down Expand Up @@ -148,7 +147,6 @@ final class CameraConfiguration {
}
}

@frozen
enum OutputConfiguration<T: Equatable>: Equatable {
case disabled
case enabled(config: T)
Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Recording/Track.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Foundation

// MARK: - TrackType

@frozen
enum TrackType {
case audio
case video
Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Types/AutoFocusSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import AVFoundation
import Foundation

@frozen
enum AutoFocusSystem: String, JSUnionValue {
case contrastDetection = "contrast-detection"
case phaseDetection = "phase-detection"
Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Types/Flash.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Foundation
/**
A Flash for Photo capture.
*/
@frozen
enum Flash: String, JSUnionValue {
/**
Flash never fires.
Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Types/HardwareLevel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import Foundation

@frozen
enum HardwareLevel: String, JSUnionValue {
case full

Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Types/OutputOrientation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import Foundation

@frozen
enum OutputOrientation: String, JSUnionValue {
/**
Automatically rotate outputs based on device physical rotation (even if screen-lock is on)
Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Types/PixelFormat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import AVFoundation
import Foundation

@frozen
enum PixelFormat: String, JSUnionValue {
case yuv
case rgb
Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Types/QualityBalance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import AVFoundation
import Foundation

@frozen
enum QualityBalance: String, JSUnionValue {
case speed
case balanced
Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Types/ResizeMode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Foundation
/**
A ResizeMode used for the PreviewView.
*/
@frozen
enum ResizeMode: String, JSUnionValue {
/**
Keep aspect ratio, but fill entire parent view (centered).
Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Types/ShutterType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Foundation
/**
Represents the type of media that was captured in a `onShutter` event
*/
@frozen
enum ShutterType: String, JSUnionValue {
/**
A photo was captured on this `onShutter` event
Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Types/Torch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Foundation
/**
A Torch used for permanent flash.
*/
@frozen
enum Torch: String, JSUnionValue {
/**
Torch (flash unit) is always off.
Expand Down
1 change: 0 additions & 1 deletion package/ios/Core/Types/VideoStabilizationMode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import AVFoundation
import Foundation

@frozen
enum VideoStabilizationMode: String, JSUnionValue {
case off
case standard
Expand Down
2 changes: 1 addition & 1 deletion package/ios/React/CameraViewManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ final class CameraViewManager: RCTViewManager {
@objc
final func getLocationPermissionStatus() -> String {
#if VISION_CAMERA_ENABLE_LOCATION
let status = CLLocationManager.authorizationStatus()
let status = CLLocationManager().authorizationStatus
return status.descriptor
#else
return CLAuthorizationStatus.restricted.descriptor
Expand Down