Skip to content

Commit 4e426d4

Browse files
committed
Fix sidebar appearance
1 parent 63ef38b commit 4e426d4

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Example iOS/Controllers/SideBarController.swift

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class SideBarSplitController: UISplitViewController {
7777
override func viewDidLoad() {
7878
super.viewDidLoad()
7979

80+
primaryBackgroundStyle = .sidebar
8081
preferredDisplayMode = .oneBesideSecondary
8182
presentsWithGesture = false
8283
preferredSplitBehavior = .tile

Sources/SPDiffable/Collection/SPDiffableSideBarController.swift

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ open class SPDiffableSideBarController: UIViewController, UICollectionViewDelega
5656

5757
let layout = UICollectionViewCompositionalLayout { [weak self] (section, layoutEnvironment) -> NSCollectionLayoutSection? in
5858
var configuration = UICollectionLayoutListConfiguration(appearance: .sidebar)
59-
configuration.backgroundColor = UIColor.secondarySystemBackground
6059
let header = self?.diffableDataSource?.snapshot().sectionIdentifiers[section].header
6160
configuration.headerMode = (header == nil) ? .none : .firstItemInSection
6261
let footer = self?.diffableDataSource?.snapshot().sectionIdentifiers[section].footer

0 commit comments

Comments
 (0)