InterposeKit:一个现代库,可在Swift中优雅地显示

时间:2021-02-06 01:19:56
【文件属性】:
文件名称:InterposeKit:一个现代库,可在Swift中优雅地显示
文件大小:192KB
文件格式:ZIP
更新时间:2021-02-06 01:19:56
swift hook aspects swizzling interpose InterposeKit是一个现代库,可以在Swift中优雅地显示,支持类和单个对象上的钩子。 它以“纯” Swift 5.2编写有,和编写,可用于@objc dynamic Swift函数或Objective-C实例方法。 InterposeKit的灵感是中的,需要进行一些棘手的修改才能解决,我还在写下了。 该库不基于, 使用直接替换实现。 这避免了一些。 您可以调用原始实现并在方法调用之前或之后添加代码。 这类似于,但是还没有进行动态子类化。 比较: 用法 假设您要修改TestClass sayHi : class TestClass : NSObject { // Fun
【文件预览】:
InterposeKit-master
----.swiftpm()
--------xcode()
----.jazzy.yaml(365B)
----InterposeKit.podspec(835B)
----.swiftlint.yml(478B)
----InterposeTestHost()
--------ViewController.swift(231B)
--------Assets.xcassets()
--------InterposeTestHost.entitlements(295B)
--------Base.lproj()
--------AppDelegate.swift(601B)
--------Info.plist(2KB)
----.github()
--------workflows()
----Example()
--------InterposeExample.xcodeproj()
--------InterposeExampleTests()
--------InterposeExample()
----logo-social.png(88KB)
----Configuration()
--------Defaults-Testing.xcconfig(582B)
--------Defaults-Release.xcconfig(2KB)
--------Defaults-Debug.xcconfig(213B)
--------Defaults.xcconfig(9KB)
----Docs.md(173B)
----LICENSE(1KB)
----InterposeKit.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(35KB)
--------Info-Tests.plist(727B)
--------xcshareddata()
--------Info.plist(752B)
----Sources()
--------SuperBuilder()
--------InterposeKit()
----Package.swift(515B)
----CONTRIBUTING.md(1KB)
----Gemfile(58B)
----Gemfile.lock(3KB)
----.gitignore(2KB)
----.codecov.yml(31B)
----CHANGELOG.md(290B)
----logo.png(23KB)
----InterposeKit.xcworkspace()
--------contents.xcworkspacedata(432B)
--------xcshareddata()
----Tests()
--------LinuxMain.swift(126B)
--------InterposeKitTests()
----README.md(11KB)

网友评论