Post

Replies

Boosts

Views

Activity

How to Change Splitview behavior specific to Views
Hi, developing an app using spiltviewcontroller with sidebar. Splitviewcontroller initialized with .tripleColumn style. (primary, supplementary, secondary)The app has some views that have to open like .doubleColumn style.(primary, secondary) I've used .hide() method to hide the supplementary view and it do the job but when tap on sidebar button, the supplementary view appear. Instead of appearing supplementary view, primary view has to appear. how can i suppose to do this ??
0
0
177
Jul ’20
How change the Selection Color in Compositional Layouts in CollectionView
I've recently worked with Compositional Layouts with Diffable DataSource. I've implemented side bar using UICollectionLayoutListConfiguration(appearance: .sidebar). I want to change the collection cell selection color to a custom color. I've used following code. let cellRegistration = UICollectionView.CellRegistration<UICollectionViewListCell, MenuData> { (cell, indexPath, item) in let red = UIView() red.backgroundColor = UIColor.red cell.selectedBackgroundView = red var content = cell.defaultContentConfiguration() content.text = item.menuTitle content.image = item.image cell.contentConfiguration = content } though it applys the selection color, default cell configuration got override. is there any other approach to change the selection color
1
0
1.4k
Aug ’20