O'Reilly logo
  • Tarquinio Teles thinks this is interesting:

override func viewWillLayoutSubviews() { self.cameraPreview?.setCameraOrientation(currentVideoOrientation)

From

Cover of Learning Swift, 3rd Edition

Note

Note to author: maybe a mistake? viewWillLayoutSubviews() is a UIViewController method, not UIView...