diff --git a/Source/PTEDashboard.m b/Source/PTEDashboard.m index ea8342f..fbac20b 100644 --- a/Source/PTEDashboard.m +++ b/Source/PTEDashboard.m @@ -40,7 +40,7 @@ + (PTEDashboard *)sharedDashboard dispatch_once(&onceToken, ^ { CGRect frame = UIScreen.mainScreen.bounds; - _sharedDashboard = [[self alloc] initWithFrame:frame]; + _sharedDashboard = [[self alloc] initWithFrame:UIEdgeInsetsInsetRect(window.frame, window.safeAreaInsets)]; }); return _sharedDashboard; } @@ -51,7 +51,7 @@ - (instancetype)initWithFrame:(CGRect)frame if (self) { self.windowLevel = UIWindowLevelStatusBar + 1; - _screenSize = [UIScreen mainScreen].bounds.size; + _screenSize = frame.size; if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) {