flocked / AdvancedCollectionTableView

Extended NSCollectionView & NSTableView: Cell- & ItemRegistration, SwiftUI table cells/collection view items,…
MIT License
26 stars 1 forks source link

Variable default content configurations inside NSCollectionViewItem & NSTableCellView #2

Closed flocked closed 1 year ago

flocked commented 1 year ago

func defaultContentConfiguration() inside the extensions of NSCollectionViewItem & NSTableCellView needs to return different default content configurations depending of the style of it's table/collection view.

Inside a source list / sidebar table view (NSTableView.Style = .sourceList) should e.g. return a different default content configuration than compared to a plain table view (NSTableView.Style = .sourceList)