I'm not near a Mac right now, but you're trying to iterate through the result that your giornataDisplay() function is returning, but it doesn't return anything. It looks like you're trying to create a View in that function without actually telling SwiftUI that this is a View. Move the stuff out of the function and into the ForEach loop, and see what happens.
You might, alternatively, want to change that func into a struct that returns a View for the data passed into it.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: