12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import FloatingPanel
- class NCMenuPanelController: FloatingPanelController {
- var parentPresenter: UIViewController?
- override func viewDidLoad() {
- super.viewDidLoad()
- if #available(iOS 13.0, *) {
- self.surfaceView.backgroundColor = .systemBackground
- }
- self.isRemovalInteractionEnabled = true
- if #available(iOS 11, *) {
- self.surfaceView.cornerRadius = 16
- } else {
- self.surfaceView.cornerRadius = 0
- }
- }
- }
|