Skip to content

Commit

Permalink
mainScreenWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
songwentong committed Dec 25, 2019
1 parent 0a0e93f commit 437fc80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/WTKit/UIKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public extension UIScreen{
class var mainScreenSize:CGSize {
return mainScreenBounds.size
}
class func mainScreenWidth() -> CGFloat {
return UIScreen.main.bounds.size.width
class var mainScreenWidth:CGFloat {
return mainScreenSize.width
}
class func mainScreenHeight() -> CGFloat {
return UIScreen.main.bounds.size.height
class var mainScreenHeight:CGFloat {
return mainScreenSize.height
}
}

Expand Down

0 comments on commit 437fc80

Please sign in to comment.