// // ViewModel.swift // fiveConstant // // Created by 李建 on 2023/1/14. // import Foundation import Combine class ViewModel: ObservableObject { var webViewNavigationPublisher = PassthroughSubject() var showWebTitle = PassthroughSubject() var showLoader = PassthroughSubject() var valuePublisher = PassthroughSubject() } // For identifiying WebView's forward and backward navigation enum WebViewNavigation { case backward, forward, reload } // For identifying what type of url should load into WebView enum WebUrlType { case localUrl, publicUrl }