             }, completion: nil)
         }
     }
-    
+
     func clampDragOffset() {
         let maxHiddenWidth = view.frame.size.width * 0.4
         if dragOffset.width < -maxHiddenWidth {

        } else if dragOffset.width > UIScreen.main.bounds.width - view.frame.size.width + maxHiddenWidth {
            dragOffset.width = UIScreen.main.bounds.width - view.frame.size.width + maxHiddenWidth
        }
        
        let maxHiddenHeight = view.frame.size.height * 0.4
        if dragOffset.height < -maxHiddenHeight {
            dragOffset.height = -maxHiddenHeight

}

extension CircularDashboardViewController: PopoverViewControllerDelegate {

    func dismissPopoverViewController() {
        updatePopoverVisibility(to: .closed)
        UIApplication.shared.statusBarStyle = formerStatusBarStyle
    }
}

extension CircularDashboardViewController: UIPopoverPresentationControllerDelegate {

    func adaptivePresentationStyle(for controller: UIPresentationController) -> UIModalPresentationStyle {
        return .none
    }

    func prepareForPopoverPresentation(_ popoverPresentationController: UIPopoverPresentationController) {
        popoverPresentationController.permittedArrowDirections = .any
        popoverPresentationController.sourceView = self.roundView
    }
}

