NCMenuPanelController.swift 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // NCMenuPanelController.swift
  3. // Nextcloud
  4. //
  5. // Created by Philippe Weidmann on 23.01.20.
  6. // Copyright © 2020 Philippe Weidmann. All rights reserved.
  7. // Copyright © 2020 Marino Faggiana All rights reserved.
  8. //
  9. // Author Philippe Weidmann <philippe.weidmann@infomaniak.com>
  10. // Author Marino Faggiana <marino.faggiana@nextcloud.com>
  11. //
  12. // This program is free software: you can redistribute it and/or modify
  13. // it under the terms of the GNU General Public License as published by
  14. // the Free Software Foundation, either version 3 of the License, or
  15. // (at your option) any later version.
  16. //
  17. // This program is distributed in the hope that it will be useful,
  18. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. // GNU General Public License for more details.
  21. //
  22. // You should have received a copy of the GNU General Public License
  23. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  24. //
  25. import FloatingPanel
  26. class NCMenuPanelController: FloatingPanelController {
  27. var parentPresenter: UIViewController?
  28. override func viewDidLoad() {
  29. super.viewDidLoad()
  30. if #available(iOS 13.0, *) {
  31. self.surfaceView.backgroundColor = .systemBackground
  32. }
  33. self.isRemovalInteractionEnabled = true
  34. self.surfaceView.cornerRadius = 16
  35. }
  36. }