Commit 71565605 authored by Zandor Smith's avatar Zandor Smith 💻
Browse files

Print values.

parent 51a6c3ee
...@@ -23,7 +23,12 @@ class ViewController: UIViewController { ...@@ -23,7 +23,12 @@ class ViewController: UIViewController {
} }
func refresh() { func refresh() {
self.stateLabel.text = "isZoomed: " + (Device.current.isZoomed ?? false ? "true" : "false") let zoomed = Device.current.isZoomed
print("device: " + Device.current.description)
print("isZoomed: " + (zoomed ?? false ? "true" : "false"))
print("nativeScale: " + String(Float(UIScreen.main.nativeScale)))
print("scale: " + String(Float(UIScreen.main.scale)))
self.stateLabel.text = "isZoomed: " + (zoomed ?? false ? "true" : "false")
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment