chinmaygarde / hierarchydetective

The Missing View Hierarchy Debugger
MIT License
394 stars 20 forks source link

Cocoapods support for the library #2

Open johanforssell opened 11 years ago

johanforssell commented 11 years ago

I'm using Cocoapods for my project and I would like Hierarchy Detective to show up there. Could you create a cocoapods pod for your project?

chinmaygarde commented 11 years ago

On it now.

However, I am unsure if the introspection server should startup automatically or a public header be exposed and the user expected to manually start and stop the same (for example, on UIApplicationWillEnterForegroundNotification or just on the click of a button). Since this is mainly a debugging tool, I would hate for someone to unintentionally embed the server into their application when they are not debugging.

In either case, the interface is quite simple (A call to -[HDDetective activate] and -[HDDetective deactive] in https://github.com/chinmaygarde/hierarchydetective/blob/master/Detective/HDDetective.h). It is just a matter of deciding on a sensible (and least unexpected) default.

Do you have a preference on the same? I am leaning towards exposing a header.