Skip to content

Commit

Permalink
(Temp) Fix AutoLayout resize
Browse files Browse the repository at this point in the history
  • Loading branch information
revblaze committed Aug 12, 2020
1 parent a7a5385 commit 2f67428
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WiBlaze/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,19 @@ class ViewController: UIViewController, WKNavigationDelegate, WKUIDelegate, UITe

}


// TODO: Figure out how to resize WebView when facing sites like YouTube
// The code below fixes the YouTube layout issue, but messes up every website that follows
func resize(_ url: String) {
topConstraint.constant = navBarHeight
/*
if Site.needsFullScreen(url) {
topConstraint.constant = navBarHeight
Debug.log("FullScreen URL: \(Live.fullURL), withHeight: \(navBarHeight)")
} else {
topConstraint.constant = 0
Debug.log("New Constraint: \(topConstraint.constant)")
}
*/

}

Expand Down

0 comments on commit 2f67428

Please sign in to comment.