Skip to content

Commit 7e81346

Browse files
authored
Merge pull request #96 from protect-earth/al/92-2
Force app to run in portrait mode only
2 parents 865d330 + b48e4b1 commit 7e81346

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Tree Tracker.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
9DB29B582821D50000AAC73D /* SimpleTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9DB29B572821D50000AAC73D /* SimpleTableViewCell.swift */; };
131131
9DB29B5A282876B700AAC73D /* SitesController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9DB29B59282876B700AAC73D /* SitesController.swift */; };
132132
9DCC548C28073F0A00CF67AA /* Resolver in Frameworks */ = {isa = PBXBuildFile; productRef = 9DCC548B28073F0A00CF67AA /* Resolver */; };
133+
9DD03B13299952E400537A31 /* PortraitUITabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9DD03B12299952E400537A31 /* PortraitUITabBarController.swift */; };
133134
9DFF45C428C69AAD00D45C73 /* CloudinaryUploadResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9DFF45C328C69AAD00D45C73 /* CloudinaryUploadResponse.swift */; };
134135
9DFF6277282E63100008AEEF /* SupervisorsController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9DFF6276282E63100008AEEF /* SupervisorsController.swift */; };
135136
9DFF6279282E64780008AEEF /* SpeciesController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9DFF6278282E64780008AEEF /* SpeciesController.swift */; };
@@ -268,6 +269,7 @@
268269
9DB29B552821C28300AAC73D /* SettingsController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsController.swift; sourceTree = "<group>"; };
269270
9DB29B572821D50000AAC73D /* SimpleTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimpleTableViewCell.swift; sourceTree = "<group>"; };
270271
9DB29B59282876B700AAC73D /* SitesController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SitesController.swift; sourceTree = "<group>"; };
272+
9DD03B12299952E400537A31 /* PortraitUITabBarController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PortraitUITabBarController.swift; sourceTree = "<group>"; };
271273
9DFF45C328C69AAD00D45C73 /* CloudinaryUploadResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CloudinaryUploadResponse.swift; sourceTree = "<group>"; };
272274
9DFF6276282E63100008AEEF /* SupervisorsController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SupervisorsController.swift; sourceTree = "<group>"; };
273275
9DFF6278282E64780008AEEF /* SpeciesController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpeciesController.swift; sourceTree = "<group>"; };
@@ -578,6 +580,7 @@
578580
85CC02EB261B6EA90016E618 /* TextTableViewCell.swift */,
579581
9DB29B572821D50000AAC73D /* SimpleTableViewCell.swift */,
580582
9D2B454E2944F54000B09C84 /* LocationWarningOverlayView.swift */,
583+
9DD03B12299952E400537A31 /* PortraitUITabBarController.swift */,
581584
);
582585
path = "UI Components";
583586
sourceTree = "<group>";
@@ -824,6 +827,7 @@
824827
859F62E025C228AE005E61F7 /* KeyedContainer.swift in Sources */,
825828
9DB29B582821D50000AAC73D /* SimpleTableViewCell.swift in Sources */,
826829
85B83A2625B9C1D50008E167 /* MainFlowViewController.swift in Sources */,
830+
9DD03B13299952E400537A31 /* PortraitUITabBarController.swift in Sources */,
827831
85B839D925B74FD20008E167 /* Keyboard.swift in Sources */,
828832
85DC213C25E0FC8F003F0721 /* ImageCacheInfo.swift in Sources */,
829833
858A0F2725D8156100E12C2B /* TreeDetailsFlowViewController.swift in Sources */,

Tree Tracker/Navigation/MainFlowViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import Photos
33

4-
final class MainFlowViewController: UITabBarController {
4+
final class MainFlowViewController: PortraitUITabBarController {
55
override func viewDidLoad() {
66
super.viewDidLoad()
77

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import UIKit
2+
3+
class PortraitUITabBarController: UITabBarController {
4+
override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
5+
return .portrait
6+
}
7+
}

0 commit comments

Comments
 (0)