Move the two UIKit extensions (for UITableView and UICollectionView respectively) from the Test App target to the framework. Only compiles for iOS. Provides these two methods:
// UITableView
open func update<T: Equatable>(with edits: [Edit<T>], in section: Int = 0)
// UICollectionView
open func update<T: Equatable>(with edits: [Edit<T>], in section: Int = 0, completion: ((Bool) -> Void)? = nil)
In most cases (I’ll argue), you can then just call like this:
Move the two UIKit extensions (for
UITableView
andUICollectionView
respectively) from the Test App target to the framework. Only compiles for iOS. Provides these two methods:In most cases (I’ll argue), you can then just call like this: