Skip to content

Commit

Permalink
fix: Rename to qualityBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Feb 29, 2024
1 parent 30fdeca commit 0b11ab2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package/ios/CameraView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public final class CameraView: UIView, CameraSessionDelegate {
config.photo = .enabled(config: CameraConfiguration.Photo(enableHighQualityPhotos: enableHighQualityPhotos,
enableDepthData: enableDepthData,
enablePortraitEffectsMatte: enablePortraitEffectsMatteDelivery,
photoQualityBalance: getPhotoQualityBalance()))
qualityBalance: getPhotoQualityBalance()))
} else {
config.photo = .disabled
}
Expand Down
2 changes: 1 addition & 1 deletion package/ios/Core/CameraConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class CameraConfiguration {
var enableHighQualityPhotos = false
var enableDepthData = false
var enablePortraitEffectsMatte = false
var photoQualityBalance = QualityBalance.balanced
var qualityBalance = QualityBalance.balanced
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package/ios/Core/CameraSession+Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ extension CameraSession {

// 2. Configure
if #available(iOS 13.0, *) {
let qualityPrioritization = AVCapturePhotoOutput.QualityPrioritization(fromQualityBalance: photo.photoQualityBalance)
let qualityPrioritization = AVCapturePhotoOutput.QualityPrioritization(fromQualityBalance: photo.qualityBalance)
photoOutput.maxPhotoQualityPrioritization = qualityPrioritization
}
if photo.enableHighQualityPhotos {
Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"lint-ci": "yarn lint -f ./node_modules/@firmnav/eslint-github-actions-formatter/dist/formatter.js",
"start": "cd example && yarn start",
"build": "bob build",
"release": "release-it",
"release": "bob build && release-it",
"pods": "cd example && yarn pods",
"bootstrap": "yarn && cd example && yarn && yarn pods",
"check-android": "scripts/ktlint.sh && scripts/clang-format.sh",
Expand Down

0 comments on commit 0b11ab2

Please sign in to comment.