yeatse / NSURLProtocol-WebKitSupport

Make your WKWebView happy with NSURLProtocol
MIT License
663 stars 126 forks source link

请问可以写一个swift 版本吗?现在在使用swift写Hybrid ,想打包成cocopods库 #8

Open Ucself opened 6 years ago

yeatse commented 6 years ago

就两个文件,做成 pod 库没必要吧😳

Ucself commented 6 years ago

我具体描述一下吧:我想做一个pod 库,这个pod包含了一些封装的功能(使用swift开发的),但是这个pod库会引用NSURLProtocol-WebKitSupport。你这个是OC写的,我写的pod库是swift写的;怎样才能达到我想要的。

yeatse commented 6 years ago

Swift 库可以与 OC 混编的,具体可以参考下这个库

https://github.com/Yeatse/KingfisherWebP/tree/master/KingfisherWebP/Classes

DingSoung commented 5 years ago

简单 https://github.com/DingSoung/Extension/blob/master/Extension/WebKit/WKWebView%2BregisterScheme.swift

Panway commented 4 years ago

楼上的Swift版地址更新了: https://github.com/DingSoung/Extension/blob/master/Sources/WebKit/WKWebView%2BregisterScheme.swift