Skip to content

Commit fccd23a

Browse files
committed
Removed code that locked PageViewController only in Portrait mode.
1 parent d24b3e8 commit fccd23a

4 files changed

Lines changed: 0 additions & 53 deletions

File tree

OpenDocumentReader.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
/* Begin PBXBuildFile section */
1010
21E6C5303C9ED8A9A9317BEC /* Pods_OpenDocumentReader.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EF00F649A86477A6C27F07C0 /* Pods_OpenDocumentReader.framework */; };
11-
AC384BCC23B4FFA700C7BF47 /* AppUtility.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC384BA523B4FFA700C7BF47 /* AppUtility.swift */; };
1211
AC384BCD23B4FFA700C7BF47 /* ContentViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC384BC923B4FFA700C7BF47 /* ContentViewController.swift */; };
1312
AC384BCE23B4FFA700C7BF47 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC384BCA23B4FFA700C7BF47 /* Constants.swift */; };
1413
AC384BCF23B4FFA700C7BF47 /* PageViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC384BCB23B4FFA700C7BF47 /* PageViewController.swift */; };
@@ -262,7 +261,6 @@
262261

263262
/* Begin PBXFileReference section */
264263
97704690541D85438FC2079C /* Pods-OpenDocumentReader.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenDocumentReader.release.xcconfig"; path = "Pods/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader.release.xcconfig"; sourceTree = "<group>"; };
265-
AC384BA523B4FFA700C7BF47 /* AppUtility.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppUtility.swift; sourceTree = "<group>"; };
266264
AC384BC923B4FFA700C7BF47 /* ContentViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContentViewController.swift; sourceTree = "<group>"; };
267265
AC384BCA23B4FFA700C7BF47 /* Constants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = "<group>"; };
268266
AC384BCB23B4FFA700C7BF47 /* PageViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PageViewController.swift; sourceTree = "<group>"; };
@@ -389,7 +387,6 @@
389387
E2F7ED54220B54D600D63515 /* DocumentBrowserViewController.swift */,
390388
E22EB6F7226B621200053B86 /* DocumentBrowserTransitioningDelegate.swift */,
391389
E22EB719226B65E300053B86 /* DocumentViewController.swift */,
392-
AC384BA523B4FFA700C7BF47 /* AppUtility.swift */,
393390
AC384BCA23B4FFA700C7BF47 /* Constants.swift */,
394391
AC384BC923B4FFA700C7BF47 /* ContentViewController.swift */,
395392
AC384BCB23B4FFA700C7BF47 /* PageViewController.swift */,
@@ -770,7 +767,6 @@
770767
E2C008FA220F1CF80097C594 /* CoreWrapper.mm in Sources */,
771768
E2D0B3D9226D945400534FCC /* StoreReviewHelper.swift in Sources */,
772769
E22EB716226B621200053B86 /* DocumentBrowserTransitioningDelegate.swift in Sources */,
773-
AC384BCC23B4FFA700C7BF47 /* AppUtility.swift in Sources */,
774770
AC384BCE23B4FFA700C7BF47 /* Constants.swift in Sources */,
775771
E2F7ED55220B54D600D63515 /* DocumentBrowserViewController.swift in Sources */,
776772
E2F7ED53220B54D600D63515 /* AppDelegate.swift in Sources */,

OpenDocumentReader/AppDelegate.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,5 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
7272
return true
7373
}
7474

75-
/// Set orientations you want to be allowed in this property by default
76-
var orientationLock = UIInterfaceOrientationMask.all
77-
78-
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
79-
return self.orientationLock
80-
}
8175
}
8276

OpenDocumentReader/AppUtility.swift

Lines changed: 0 additions & 30 deletions
This file was deleted.

OpenDocumentReader/PageViewController.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,6 @@ class PageViewController: UIPageViewController {
3232
}
3333
}
3434

35-
override func viewWillAppear(_ animated: Bool) {
36-
super.viewWillAppear(animated)
37-
38-
AppUtility.lockOrientation(.portrait)
39-
}
40-
41-
override func viewWillDisappear(_ animated: Bool) {
42-
super.viewWillDisappear(animated)
43-
44-
//Reset when view is being removed
45-
AppUtility.lockOrientation(.all)
46-
}
47-
4835
func displayViewController(at index: Int) -> ContentViewController? {
4936
guard index < headersArray.count && index >= 0 else { return nil }
5037
guard let contentVC =

0 commit comments

Comments
 (0)