class UnderOs::Screen

Public Class Methods

size() click to toggle source
# File lib/under_os/screen.rb, line 2
def self.size
  # TODO make it handle the screen orientation
  UnderOs::Point.new({
    x: UIScreen.mainScreen.bounds.size.width,
    y: UIScreen.mainScreen.bounds.size.height
  })
end