How can I open a local PDF file using a SwiftUI button?
问题 I want to display a local PDF file through a new view when I tap a button. I tried doing that using a UIViewRepresentable WebView but it's not working (I have worked with WebView only through NavigationList). I leave my code, but feel free to suggest better option if the WebView is not the most optimal. ButtonView import SwiftUI struct ResumeView: View { let sfSymbol: String let text: String let fileUrl = Bundle.main.path(forResource: "Resume", ofType: "pdf") var body: some View {