runJavaScriptConfirmPanelWithMessage (1) 썸네일형 리스트형 SwiftUI, WKWebView 구현하기 import SwiftUI import WebKit struct ContentView: View { let url = "https://google.com" // showAlert가 true면 알림창이 뜬다 // If showAlert is true, a notification window pops up @State var showAlert: Bool = false // alert에 표시할 내용 // This is the content to be displayed in the alert. @State var alertMessage: String = "error" // 웹뷰 확인/취소 작업을 처리하기 위한 핸드러를 받아오는 변수 // Variable that gets the handler to handle .. 이전 1 다음