Quantcast
Channel: Controls – TAGTECINFO
Viewing all articles
Browse latest Browse all 336

[iOS App Dev Libraries, Controls, Tutorials, Examples and Tools]ObjectiveKit – Swift Library That Makes It Easy To Introspect And Modify Classes At Runtime

$
0
0

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 mapViewClass = ObjectiveClass<mkmapview \>()
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.

Original article: ObjectiveKit – Swift Library That Makes It Easy To Introspect And Modify Classes At Runtime

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Reference source: iOS App Dev Libraries, Controls, Tutorials, Examples and Tools


Viewing all articles
Browse latest Browse all 336

Trending Articles