I am a beginner at SwiftUI.
I created a struct to save some text and the detail information link page. like this:
struct First: Identifiable {
let title: String
let icon: String
let id = UUID()
let link: View //link to customised page
the property link will save the View I have created as Page1.swift, Page2.swift, Page2.swift...
How to define the link type in the struct First?
Thanks a lot.