ObjectiveKit from Roy Marmelstein is an open source Swift library for working with the Objective-C at runtime that makes instrospection, modifying methods, and creation of Objective-C classes dynamically simple in Swift.
Here’s an example showing one could use ObjectiveKit to create an Objective-C class dynamically in Swift.
let selectors = mapViewClass.selectors // An array of selectors.
let properties = mapViewClass.properties // An array of properties.
mapViewClass.addSelector(#selector(testSelector), from: self.classForCoder)
You can read more about ObjectiveKit on the Swift and iOS writing blog.
You can find ObjectiveKit on Github here.
A handy library for anyone needing to use the dynamic features of Objective-C within Swift.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.