Skip to content

Commit

Permalink
added category to UIScreen to determine if screen is retina or higher
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispix committed Jun 20, 2015
1 parent 369b293 commit 9582efb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Swift Extensions/UIScreen+TBL.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

extension UIScreen {

public func isHighRes() -> Bool {
return scale > 1.0
}

}

0 comments on commit 9582efb

Please sign in to comment.