Skip to content

Commit

Permalink
iOS 8 bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlui committed Jan 2, 2019
1 parent 38516c1 commit 51d8e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftNotice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class SwiftNotice: NSObject {

// just for iOS 8
static func getRealCenter() -> CGPoint {
if UIApplication.shared.statusBarOrientation.hashValue >= 3 {
if UIApplication.shared.statusBarOrientation.rawValue >= 3 {
return CGPoint(x: rv!.center.y, y: rv!.center.x)
} else {
return rv!.center
Expand Down

0 comments on commit 51d8e46

Please sign in to comment.