'Present a new image every time the app is open [closed]

I am trying to put a new image every time someone closes and reopens the app.

This is a sample view:

import SwiftUI

struct SwiftUIView: View {
    var body: some View {
        Image("PictureName")
    }
}

struct SwiftUIiew_Previews: PreviewProvider {
    static var previews: some View {
        SwiftUIView()
    }
}



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source