Skip to content

Commit a439cca

Browse files
committed
chore(ios): build fix
1 parent c74487e commit a439cca

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pod "NextLevel", :git => 'https://github.com/Akylas/NextLevel.git', :branch => "0.16.4"
1+
pod "NextLevel", :git => 'https://github.com/Akylas/NextLevel.git', :branch => "0.16.5"
22
# pod "NextLevel", :path => '/Volumes/dev/ios/NextLevel'

packages/ui-cameraview/platforms/ios/src/NSCameraView.swift

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public class NSCameraView: UIView, NextLevelVideoDelegate, NextLevelPhotoDelegat
109109

110110
public var lensPosition: Float {
111111
get {
112-
return self.nextLevel?.lensPosition
112+
return self.nextLevel?.lensPosition ?? 1.0
113113
}
114114
set {
115115
self.nextLevel?.lensPosition = newValue
@@ -442,19 +442,3 @@ extension UIDeviceOrientation {
442442
}
443443
}
444444
}
445-
446-
extension NextLevel {
447-
448-
public var minVideoZoomFactor: Float {
449-
if let device = self._currentDevice {
450-
return minAvailableVideoZoomFactor
451-
}
452-
return 1.0
453-
}
454-
public var maxVideoZoomFactor: Float {
455-
if let device = self._currentDevice {
456-
return maxAvailableVideoZoomFactor
457-
}
458-
return 1.0
459-
}
460-
}

0 commit comments

Comments
 (0)