Hi, am having a weird issue when trying to set a background for a collection view.
private func setupUnconfirmedTrips() {
let emptyTripsView = EmptyUnconfirmedTripsView(frame: unconfirmedTripsCollectionView.bounds)
emptyTripsView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
if unconfirmedTrips.isEmpty {
unconfirmedTripsCollectionView.backgroundView = emptyTripsView
} else {
unconfirmedTripsCollectionView.backgroundView = UIView(frame: unconfirmedTripsCollectionView.bounds)
unconfirmedTripsCollectionView.reloadData()
}
} Hi, am having a weird issue when trying to set a background for a collection view. I set a default image for the background as a place holder until data is received from services. The background image is set and works great however when I go to reset it after I receive data that image will not reset.
No any search results
You already invited:
0 Answers