Posts

Post marked as solved
3 Replies
I'm pretty sure that if you put a return in your fetchPhotos method that populates the photos variable, the @State will suffice. Turns out you're not populating your variable, or at least you can't see that in your code above. Regarding the use of an extra layer, I suggest you take a look at this post on why to insulate in different layers, even if it seems redundant.