Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
malomo committed Jul 18, 2016
1 parent 97572b3 commit 37180a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CameraEngine/CameraEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,7 @@ public extension CameraEngine {
do {
try currentDevice.lockForConfiguration()

if (performFocus)
{
if performFocus {
currentDevice.focusPointOfInterest = CGPoint(x: focusPoint.x, y: focusPoint.y)
if currentDevice.focusMode == AVCaptureFocusMode.Locked {
currentDevice.focusMode = AVCaptureFocusMode.AutoFocus
Expand Down

0 comments on commit 37180a0

Please sign in to comment.