Use correct sidebar style on Catalyst
This commit is contained in:
parent
1e59f663e5
commit
0303c9af9d
|
@ -78,7 +78,7 @@ class MainSidebarViewController: UIViewController {
|
||||||
let layout = UICollectionViewCompositionalLayout.list(using: .init(appearance: .sidebar))
|
let layout = UICollectionViewCompositionalLayout.list(using: .init(appearance: .sidebar))
|
||||||
collectionView = UICollectionView(frame: view.bounds, collectionViewLayout: layout)
|
collectionView = UICollectionView(frame: view.bounds, collectionViewLayout: layout)
|
||||||
collectionView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
collectionView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
||||||
collectionView.backgroundColor = .systemGroupedBackground
|
collectionView.backgroundColor = .clear
|
||||||
collectionView.delegate = self
|
collectionView.delegate = self
|
||||||
view.addSubview(collectionView)
|
view.addSubview(collectionView)
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@ class MainSplitViewController: UISplitViewController {
|
||||||
sidebar = MainSidebarViewController(mastodonController: mastodonController)
|
sidebar = MainSidebarViewController(mastodonController: mastodonController)
|
||||||
sidebar.sidebarDelegate = self
|
sidebar.sidebarDelegate = self
|
||||||
setViewController(sidebar, for: .primary)
|
setViewController(sidebar, for: .primary)
|
||||||
|
primaryBackgroundStyle = .sidebar
|
||||||
|
|
||||||
setViewController(EnhancedNavigationViewController(), for: .secondary)
|
setViewController(EnhancedNavigationViewController(), for: .secondary)
|
||||||
select(item: .tab(.timelines))
|
select(item: .tab(.timelines))
|
||||||
|
|
Loading…
Reference in New Issue