Skip to content

Commit 0bdb34d

Browse files
committed
Fix tvOS build
1 parent 709eca7 commit 0bdb34d

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

Sources/Pageboy.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
464ADF5F20975E5000929AFB /* UIViewController+Pageboy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 464ADF5E20975E5000929AFB /* UIViewController+Pageboy.swift */; };
3333
464ADF6020975E5000929AFB /* UIViewController+Pageboy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 464ADF5E20975E5000929AFB /* UIViewController+Pageboy.swift */; };
3434
466A76B61FB38B32000B5C1C /* PageboyViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D623B1D11E1D2DF200527F3D /* PageboyViewController.swift */; };
35+
46A7329D22F81D8800FB2B6B /* IndexedObjectMap.swift in Sources */ = {isa = PBXBuildFile; fileRef = 460906B8222A79F6005474BF /* IndexedObjectMap.swift */; };
36+
46A7329E22F81D9000FB2B6B /* WeakContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 460906B6222A785E005474BF /* WeakContainer.swift */; };
37+
46A7329F22F81D9C00FB2B6B /* PageboyViewController+ScrollCalculations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46B7BD7D21791E2D0041EFFC /* PageboyViewController+ScrollCalculations.swift */; };
3538
46ADAAB6208F7E1500974529 /* PageboyAutoScroller.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ADAAB4208F7E1500974529 /* PageboyAutoScroller.swift */; };
3639
46ADAAB7208F7E1500974529 /* PageboyAutoScroller.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ADAAB4208F7E1500974529 /* PageboyAutoScroller.swift */; };
3740
46ADAAB8208F7E1500974529 /* PageboyViewController+AutoScrolling.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ADAAB5208F7E1500974529 /* PageboyViewController+AutoScrolling.swift */; };
@@ -532,6 +535,7 @@
532535
466A76B61FB38B32000B5C1C /* PageboyViewController.swift in Sources */,
533536
46ADAAC1208F7E8500974529 /* TransitionOperation+Action.swift in Sources */,
534537
46ADAACD208F7EB200974529 /* PageboyViewController+ScrollDetection.swift in Sources */,
538+
46A7329F22F81D9C00FB2B6B /* PageboyViewController+ScrollCalculations.swift in Sources */,
535539
46ADAABF208F7E8500974529 /* PageboyViewController+Transitioning.swift in Sources */,
536540
464ADF53209717EF00929AFB /* NavigationDirection.swift in Sources */,
537541
46ADAACF208F7EB200974529 /* PageboyViewController+Management.swift in Sources */,
@@ -548,8 +552,10 @@
548552
462D03E02091D3AB0033C710 /* UIView+Animation.swift in Sources */,
549553
462A65E22000FCAA0051C79C /* UIApplication+SafeShared.swift in Sources */,
550554
464ADF5D20975E3D00929AFB /* PageboyViewControllerDataSource.swift in Sources */,
555+
46A7329D22F81D8800FB2B6B /* IndexedObjectMap.swift in Sources */,
551556
462A65DE2000FCAA0051C79C /* UIView+Localization.swift in Sources */,
552557
464ADF5B20975E3D00929AFB /* PageboyViewControllerDelegate.swift in Sources */,
558+
46A7329E22F81D9000FB2B6B /* WeakContainer.swift in Sources */,
553559
);
554560
runOnlyForDeploymentPostprocessing = 0;
555561
};

Sources/Pageboy/PageboyViewController.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,19 @@ open class PageboyViewController: UIViewController {
4242
}
4343
}
4444

45-
public var minimumNumberOfTouches: Int {
45+
#if os(iOS)
46+
47+
/// The minimum number of fingers that can be touching the page view for the pan gesture to be recognized.
48+
open var minimumNumberOfTouches: Int {
4649
get {
4750
return pageViewController?.scrollView?.panGestureRecognizer.minimumNumberOfTouches ?? 1
4851
}
4952
set {
5053
pageViewController?.scrollView?.panGestureRecognizer.minimumNumberOfTouches = newValue
5154
}
5255
}
53-
54-
public var maximumNumberOfTouches: Int {
56+
/// The maximum number of fingers that can be touching the page view for the pan gesture to be recognized.
57+
open var maximumNumberOfTouches: Int {
5558
get {
5659
return pageViewController?.scrollView?.panGestureRecognizer.maximumNumberOfTouches ?? 1
5760
}
@@ -60,8 +63,6 @@ open class PageboyViewController: UIViewController {
6063
}
6164
}
6265

63-
#if os(iOS)
64-
6566
/// Preferred status bar style of the current view controller.
6667
open override var preferredStatusBarStyle: UIStatusBarStyle {
6768
if let currentViewController = currentViewController {

Sources/Pageboy/Transitioning/TransitionOperation+Action.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2018 UI At Six. All rights reserved.
77
//
88

9-
import Foundation
9+
import UIKit
1010

1111
internal extension TransitionOperation {
1212

Sources/Pageboy/Utilities/Extensions/UIApplication+SafeShared.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2018 Merrick Sapsford. All rights reserved.
77
//
88

9-
import Foundation
9+
import UIKit
1010

1111
internal extension UIApplication {
1212

0 commit comments

Comments
 (0)