Post

Replies

Boosts

Views

Activity

How to cache and retrieve Feed data from Firebase storage in Swift?
So I'm making an app where one of the view has a canvas view where you can draw images and upload to Firebase Storage image database (under a folder named Feed Images), and in the other view you get all the images that was shared by others as well as you. So first thing I gotta do is ask Firestore to get me the list of all items from the child Folder and then use those URL's from the result array it provided me to download the images. My problem is most of the solutions here tell how to cache on the assumption that you have the urls to images but how do you cache the array of images when you do not have their urls such as in this case? Also I would like to know a better way to download all files from my FeedImages folder and then listen to my folder for changes and Update the feed accordingly and Cache!!! those Images. Here is my code for my Feed View Controller: FeedVC code block - https://developer.apple.com/forums/content/attachment/e6c74727-bf23-4b43-9ae7-400b9ad45dae
0
0
1.3k
Jun ’20