https://github.com/ole/funtime
A Swift interface for the Objective-C Runtime API
https://github.com/ole/funtime
objective-c runtime swift wrapper
Last synced: about 1 year ago
JSON representation
A Swift interface for the Objective-C Runtime API
- Host: GitHub
- URL: https://github.com/ole/funtime
- Owner: ole
- License: mit
- Created: 2017-01-28T20:52:21.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2021-05-03T11:28:29.000Z (about 5 years ago)
- Last Synced: 2025-03-25T02:43:29.360Z (about 1 year ago)
- Topics: objective-c, runtime, swift, wrapper
- Language: Swift
- Size: 28.3 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Funtime
A Swift interface for the Objective-C Runtime API.
Status: very incomplete and half-baked.
## Usage
The project is currently an Xcode framework target for macOS. Open the project in Xcode and run the tests to verify everything works.
I would love to turn this into a Swift Package Manager* package, but SwiftPM currently (as of Swift 3.0.2) lacks at least two crucial features:
* No test-only dependencies. Since SwiftPM doesn't support mixed-language modules, we'd need a separate TestFixtures module that contains the Objective-C classes we use as input data for the unit tests.
* There's no way to pass build flags to the compiler. We need this to enable ARC for the Objective-C TestFixtures module. This is a deal breaker.
(*) In fact, this project started out as a SwiftPM package, but I had to convert it to an Xcode project for the reasons mentioned above.