       guide.leadingAnchor.constraint(equalTo: view.leadingAnchor),
       guide.trailingAnchor.constraint(equalTo: view.trailingAnchor),
       guide.centerYAnchor.constraint(equalTo: view.centerYAnchor)
+    ])
+
+    return guide
+  }
+
+  @discardableResult
+  private static func customFocusGuide(withFocusedView focusedView: UIView, addedTo view: UIView, between leftAnchor: NSLayoutXAxisAnchor, and rightAnchor: NSLayoutXAxisAnchor) -> UIFocusGuide {
+    let guide = UIFocusGuide()
+    view.addLayoutGuide(guide)
+
+    if #available(tvOS 10.0, iOS 10.0, *) {
+      guide.preferredFocusEnvironments = [ focusedView ]
+    } else {
+      guide.preferredFocusedView = focusedView
+    }
+
+    NSLayoutConstraint.activate([
+      guide.topAnchor.constraint(equalTo: view.topAnchor),
+      guide.bottomAnchor.constraint(equalTo: view.bottomAnchor),
+      guide.leftAnchor.constraint(equalTo: leftAnchor),
+      guide.rightAnchor.constraint(equalTo: rightAnchor)
     ])
 
     return guide

    @IBOutlet private weak var focusableImageView: UIImageView!
  #endif

  private static func customLayoutGuide(addedTo view: UIView) -> UILayoutGuide {
    let guide = UILayoutGuide()
    view.addLayoutGuide(guide)


    NSLayoutConstraint.activate([
      embeddedView.topAnchor.constraint(equalTo: self.view.topAnchor),
      embeddedView.centerXAnchor.constraint(equalTo: self.view.centerXAnchor)
    ])

    // Add tvOS-specific guides and constraints
    #if os(tvOS)
      AutoLayoutGuidesViewController.customFocusGuide(withFocusedView: embeddedViewController.centerView, addedTo: self.view, between: self.view.leftAnchor, and: readableContentGuide.leftAnchor)
      AutoLayoutGuidesViewController.customFocusGuide(withFocusedView: self.focusableView, addedTo: self.view, between: readableContentGuide.rightAnchor, and: self.view.rightAnchor)

      NSLayoutConstraint.activate([
        self.bottomLabel.bottomAnchor.constraint(lessThanOrEqualTo: self.focusableImageView.focusedFrameGuide.topAnchor, constant: -8)
      ])
    #endif
  }
