Post

Replies

Boosts

Views

Activity

UICollectionViewDiffableDataSource reorderingHandlers not working
I added the code below to the collectionview using UICollectionViewDiffableDataSource. However, I can not drag the cells. (mysteriously, I can drag cells on Mac Catalyst) What is missing? dataSource.reorderingHandlers.canReorderItem = { item in return true } dataSource.reorderingHandlers.didReorder = { [weak self] transaction in 		guard let self = self else { return } 		 		if let updatedBackingStore = self.backingStore.applying(transaction.difference) { 				self.backingStore = updatedBackingStore 		} }
1
0
929
Sep ’20
"Can't end BackgroundTask" error message on iOS 13.0
I made new project on Xcode 11 beta 7 and just run app on simulator and go back to home screen.Then debugger shows the message below, although I didn't implement codes related background task.Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.Has anyone else experienced this problem?
56
0
51k
Aug ’19