Comments (2)
Unfortunately I haven't found a way to safely initialize classes. If someone has a solution I'd welcome a PR.
from reflection.
I was messing around with it, but it seemed every class needed to extend NSObject
, with loads of @objc
markers everywhere.
However, once you do that, you can reflect on everything using objective c methods, even method signatures, arguments, their types etc. Unfortunately, you're writing more objective-c than swift then ;)
Thought I'd share it anyway. Maybe in the future we'll get better reflection support in swift. Closing until that point, thanks!
from reflection.
Related Issues (13)
- Missing description under title
- Would you be willing to already make an alpha Swift 4.0-branch? HOT 1
- Swift 4.1 HOT 3
- Swift 4.2 HOT 5
- Issue in SwiftKVC caused by Reflection library
- Crashes if classes inherit from NSObject. HOT 3
- How to handle Default values?
- support cocoapods and IOS Project? HOT 3
- Reflection of deep nested object HOT 2
- Xcode 10.2 and Swift 5 problem building HOT 15
- 'Hashable.hashValue' is deprecated as a protocol requirement
- Xcode 11 'Package Resolution failed' error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reflection.