Say you\'ve got a view which requires some piece of data which requires some calculation, but no outside dependances. (For example, an enumerable string listing of the past 5 years.) Is it acceptable
I have a very simple scenario: My iPhone application contains a UIViewController implementation which displays a list of items. In its navigation bar there is a button for adding items to that list.
Can anyone give me the example code that I can use to first present a modal view controller, then dismiss it? This is what I have been trying:
I have a UIViewController with a UICollectionView and a UITableView. Both views use UICollectionViewDiffableDataSource and UITableViewDiffableDataSource respectively.