Skip to content

Instantly share code, notes, and snippets.

View skywalkerlw's full-sized avatar
💭
I may be slow to respond.

LW skywalkerlw

💭
I may be slow to respond.
  • Australia, Brisbane
View GitHub Profile
@JSerZANP
JSerZANP / ContentView.swift
Created March 4, 2021 14:01
communication between native(swiftUI) and wkwebview
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
}
@pzmudzinski
pzmudzinski / CombineShoppingCartTests.swift
Last active May 20, 2021 01:39
CombineShoppingCartTests.swift
//
// CombineShoppingCartTests.swift
// CombineShoppingCartTests
//
// Created by Piotr on 25/03/2020.
// Copyright © 2020 Piotr. All rights reserved.
//
import XCTest
import Combine
@lattner
lattner / TaskConcurrencyManifesto.md
Last active April 21, 2024 09:43
Swift Concurrency Manifesto

name: inverse layout: true class: center, middle, inverse

#并发,core.async 和 JavaScript .footnote[http://git.io/js-csp]


layout: false

@darkseed
darkseed / Reachability.h
Created August 30, 2011 23:16 — forked from dhoerl/Reachability.h
Reachability (iOS) ARCified
/*
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