// Reload CollectionView whenever any popover is dismissed by user
func presentationControllerDidDismiss(_ presentationController: UIPresentationController) {
filesCollectionView.reloadData()
}
This snippet reloads but only works when a popover is dismissed by the user.
Need to find a way to automatically reload the data in the CollectionView when a new file is created.
Maybe just directly add a new cell rather than reload the entire thing? Plausible.
This snippet reloads but only works when a popover is dismissed by the user.
Need to find a way to automatically reload the data in the CollectionView when a new file is created.
Maybe just directly add a new cell rather than reload the entire thing? Plausible.