1234567891011121314151617181920212223242526 |
- //
- // SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
- // SPDX-License-Identifier: GPL-3.0-or-later
- //
- import UIKit
- extension UIPageViewController {
-
- // https://stackoverflow.com/a/47075283
- func enableSwipeGesture() {
- for view in self.view.subviews {
- if let subView = view as? UIScrollView {
- subView.isScrollEnabled = true
- }
- }
- }
- func disableSwipeGesture() {
- for view in self.view.subviews {
- if let subView = view as? UIScrollView {
- subView.isScrollEnabled = false
- }
- }
- }
- }
|