skip to Main Content

Ios swift – How to set correct tintColor with selected but not focused UICellAccessory.customView

In a UICollectionView within a UISplitViewController layout, I have a UICollectionView.CellRegistration that shows under certain conditions a warning badge as UICellAccessory. This warning badge accessory is based on the following code: func warningBadge(cell: UICollectionViewListCell) -> UICellAccessory { return UICellAccessory.customView(configuration: .init(customView:…

VIEW QUESTION

Ios swift – Adding two UIView vertically

I have two UIView and I want to add detailsView as subview with other view. I am getting following error: Cannot convert value of type 'MovieDetailsDisplayViewController.detailsView.Type' to expected argument type 'MovieDetailsDisplayViewController.View' View model code .. enum MoviesDetailsViewModelState { case loading(Movie)…

VIEW QUESTION
Back To Top
Search