Skip to content

Commit

Permalink
fix xrView visibility iOS (#1380)
Browse files Browse the repository at this point in the history
Fix bug introduced with
#1368
xrView.isHidden was not the intended value.
I've kept the syntax proposed by @okwasniewski
idk if it's the 'correct' and standard way to do it.
cc @Allan121

fixes #1379
  • Loading branch information
CedricGuillemet committed May 17, 2024
1 parent 6c7b7cb commit 737bc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Apps/Playground/iOS/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class ViewController: UIViewController {
extension ViewController: MTKViewDelegate {
func draw(in view: MTKView) {
guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else { return }
xrView.isHidden = appDelegate._bridge?.isXRActive() ?? false
xrView.isHidden = !(appDelegate._bridge?.isXRActive() ?? false)
appDelegate._bridge?.render()
}

Expand Down

0 comments on commit 737bc8e

Please sign in to comment.