#并发,core.async 和 JavaScript .footnote[http://git.io/js-csp]
layout: false
| /* | |
| File: Reachability.h | |
| Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs. | |
| Version: 2.2 - ARCified | |
| Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. | |
| ("Apple") in consideration of your agreement to the following terms, and your | |
| use, installation, modification or redistribution of this Apple software |
#并发,core.async 和 JavaScript .footnote[http://git.io/js-csp]
layout: false
Author: Chris Lattner
| // | |
| // CombineShoppingCartTests.swift | |
| // CombineShoppingCartTests | |
| // | |
| // Created by Piotr on 25/03/2020. | |
| // Copyright © 2020 Piotr. All rights reserved. | |
| // | |
| import XCTest | |
| import Combine |
| import SwiftUI | |
| import WebKit | |
| struct WebView: UIViewRepresentable { | |
| class Coordinator: NSObject, WKNavigationDelegate, WKScriptMessageHandler { | |
| var webView: WKWebView? | |
| func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { | |
| self.webView = webView | |
| } |