title: Adjust camera focus in ARKit
body: <p>I want to adjust the device's <strong>physical camera</strong> focus while in augmented reality. (I'm not talking about the <code>SCNCamera</code> object.)<br>
  In an <a href="https://forums.developer.apple.com/thread/78954" rel="nofollow noreferrer">Apple Dev forum post</a>, I've read that autofocus would interfere with ARKit's object detection, which makes sense to me.</p>
  
  <p>Now, I'm working on an app where the users will be close to the object they're looking at. The focus the camera has by default makes everything look very blurry when closer to an object than around 10cm.</p>
  
  <p>Can I adjust the camera's focus before initializing the scene, or preferably while in the scene?</p>
  
  <hr>
  
  <p><em>20.01.2018</em><br>
  Apparently, there's still no solution to this problem. You can read more about this at <a href="https://www.reddit.com/r/apple/comments/761r2u/is_it_just_me_or_do_all_arkit_apps_have_blurry/" rel="nofollow noreferrer">this reddit post</a> and <a href="https://forums.developer.apple.com/thread/78954" rel="nofollow noreferrer">this developer forum post</a> for private API workarounds and other (non-helping) info. </p>
  
  <hr>
  
  <p><em>25.01.2018</em><br>
  @AlexanderVasenin provided a useful update pointing to Apple's documentation. It shows that <code>ARKit</code> will be able to support not just focusing, but also <strong>autofocusing</strong> as of iOS 11.3.<br>
  See my usage sample below.</p>