wrongsyntax / Notes-improved

A better notes app for iPad.
0 stars 0 forks source link

CollectionView does not reload when a new folder or document is created. #1

Open wrongsyntax opened 1 year ago

wrongsyntax commented 1 year ago
    // 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.

wrongsyntax commented 1 year ago

Required for trash functionality to work as well it seems. High priority now.

wrongsyntax commented 1 year ago

Resolved with dce58f541340d4dcb6c698f4dea26139adcd2d99

wrongsyntax commented 1 year ago

Bug introduced by above commit:

Image