Use correct sidebar style on Catalyst

This commit is contained in:
Shadowfacts 2020-11-14 12:23:13 -05:00
parent 1e59f663e5
commit 0303c9af9d
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
2 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class MainSidebarViewController: UIViewController {
let layout = UICollectionViewCompositionalLayout.list(using: .init(appearance: .sidebar))
collectionView = UICollectionView(frame: view.bounds, collectionViewLayout: layout)
collectionView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
collectionView.backgroundColor = .systemGroupedBackground
collectionView.backgroundColor = .clear
collectionView.delegate = self
view.addSubview(collectionView)

View File

@ -50,6 +50,7 @@ class MainSplitViewController: UISplitViewController {
sidebar = MainSidebarViewController(mastodonController: mastodonController)
sidebar.sidebarDelegate = self
setViewController(sidebar, for: .primary)
primaryBackgroundStyle = .sidebar
setViewController(EnhancedNavigationViewController(), for: .secondary)
select(item: .tab(.timelines))