example issue - user clicks a button to open all the photos of the chairs iv made. I can hard code all of the image names in, but I assume there is a way for me to update the source folder on fire base with more photos of chairs. and then the next time the user clicks on my chairs gallery button, they will see the new photos I have added, without me having to add the photos directly to the app.
Swift and Firebase
Any ideas?
Here is where I am at the moment, Ideally grabbing a random image from the folder if the switch is turned on. Swift does not like "UIImageView" being a .image, so im not sure whats going on there,
let Switch : Bool = UserDefaults.standard.bool(forKey: "Pictures")
if Switch == true {
UIImageView.image = Box1(named: "Sample1\(Int.random(in: 0000...0999))")
let image0000 = URL(string: "gs://web.appspot.com/Sample1/1000.jpg"),
let image0001 = URL(string: "gs://web.appspot.com/sample1/1001.jpeg")
let image0002 = URL(string: "gs://web.appspot.com/Sample1/1002.jpeg")
... and so on