Skip to content

Commit

Permalink
Fixed iOS 14 triple pane layout bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrama committed Oct 21, 2020
1 parent 4ecfc66 commit 43cbc14
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
Expand Up @@ -65,33 +65,46 @@
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
notificationPayloadFile = "Slide for Apple Watch Extension/PushNotificationPayload.apns">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<RemoteRunnable
runnableDebuggingMode = "2"
BundleIdentifier = "com.apple.Carousel"
RemotePath = "/Slide for Reddit">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BE20851021588F3900D8F33C"
BuildableName = "Slide for Apple Watch.app"
BlueprintName = "Slide for Apple Watch"
ReferencedContainer = "container:Slide for Reddit.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</RemoteRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<RemoteRunnable
runnableDebuggingMode = "2"
BundleIdentifier = "com.apple.Carousel"
RemotePath = "/Slide for Reddit">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BE20851021588F3900D8F33C"
BuildableName = "Slide for Apple Watch.app"
BlueprintName = "Slide for Apple Watch"
ReferencedContainer = "container:Slide for Reddit.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</RemoteRunnable>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BE20851021588F3900D8F33C"
BuildableName = "Slide for Apple Watch.app"
BlueprintName = "Slide for Apple Watch"
ReferencedContainer = "container:Slide for Reddit.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
4 changes: 3 additions & 1 deletion Slide for Reddit/PagingCommentViewController.swift
Expand Up @@ -76,7 +76,9 @@ class PagingCommentViewController: ColorMuxPagingViewController, UIPageViewContr

submissionDataSource.delegate = self

self.splitViewController?.presentsWithGesture = false
if #available(iOS 14, *) { } else {
self.splitViewController?.presentsWithGesture = false
}
}

var first = true
Expand Down
2 changes: 1 addition & 1 deletion Slide for Reddit/SingleSubredditViewController.swift
Expand Up @@ -189,7 +189,7 @@ class SingleSubredditViewController: MediaViewController, AutoplayScrollViewDele
CachedTitle.titles.removeAll()

if UIDevice.current.userInterfaceIdiom == .pad && SettingValues.appMode == .SPLIT && !UIApplication.shared.isSplitOrSlideOver && !(splitViewController?.viewControllers[(splitViewController?.viewControllers.count ?? 1) - 1] is PlaceholderViewController) {
splitViewController?.showDetailViewController(PlaceholderViewController(), sender: self)
splitViewController?.showDetailViewController(SwipeForwardNavigationController(rootViewController: PlaceholderViewController()), sender: self)
}

flowLayout.delegate = self
Expand Down

0 comments on commit 43cbc14

Please sign in to comment.