News for hackers. Stuff that matters.
Re:UIDebuggingInformationOverlay by smilliken on Friday May 26, 2017 @03:04PM (#14426379)
> be sure that the code doesn’t make it into your App Store build, else you’re likely to get rejected.

Doesn't appear to be the case! Here's a list of 611 apps using this class: https://mixrank.com/appstore/apps?expiration=2017-06-26&list...

Notably, it looks like Google, Facebook, Netflix, and Uber are all using it (or have a dependency that is). There's been a handful that were using it since early 2015, and a surge of several hundred towards the end of last year.

Here's the other related classes:

    UIDebuggingInformationRootTableViewController
    UIDebuggingInformationTopLevelViewController
    UIDebuggingInformationValue
    UIDebuggingInformationValueTableViewCell
    UIDebuggingInformationValueViewObserver
    UIDebuggingInformationViewController
    UIDebuggingInformationValueView
    UIDebuggingInformationOverlay
    UIDebuggingInformationValueViewNumber
Re:UIDebuggingInformationOverlay by ryanipete on Friday May 26, 2017 @03:40PM (#14426604)
Interesting! I just assumed.
Re:UIDebuggingInformationOverlay by saidajigumi on Friday May 26, 2017 @03:36PM (#14426583)
Related to this, I'll highly recommend Reveal[1], a macOS app which allows for (semi-)live view debugging of iOS apps. Reveal provides view hierarchy info, and renders it on (the mac's) screen in a highly inspectable way.

Specifically, both flat 2D and a really great 3D exploded renderings of the active views are available. This is really brilliant for acquiring a deeper understanding of many initially opaque aspects of iOS view construction.

Likewise, the inspectors let you tweak and adjust autolayout constraint values, frames, bounds, and other view settings live. All together, working with Reveal restores a refreshing amount of the ease of view debugging and iteration speed that I love about working with modern in-browser debugging.

[1] https://revealapp.com/

Re:UIDebuggingInformationOverlay by LeoNatan25 on Friday May 26, 2017 @05:22PM (#14427287)
With the advancements in Xcode, I really don't think Reveal is worth it. It also requires embedding a binary framework (I think it's closed source) in your application, which can be messy for debug vs production builds. Just not worth the hassle.
Re:UIDebuggingInformationOverlay by saidajigumi on Friday May 26, 2017 @07:07PM (#14427846)
I disagree. In my experience, Xcode 8's view debugging is a bit of a joke compared to Reveal. Reveal's visualization of the view hierarchy is much better, especially when it comes to illuminating some subtleties of view ordering. Next, every time I've used Xcode's support, it kills our app. Fun times! I've never had a problem with Reveal interfering with the running app state. Last but not least, Xcode's view debugging doesn't allow live modification, which is key to iteration speed. These features together have saved me enough time that Reveal paid for itself before the trial was over -- and I'd used Xcode's view debugger well before I discovered Reveal. I wouldn't have put down money for a tool that wasn't a big delta from the Xcode baseline.

Setting up for Reveal is trivial, making your "messy" speculation seem baseless. For an app that uses CocoaPods, it's literally just adding one line to the appropriate target:

      pod 'Reveal-SDK', :configurations => ['Debug']
If that gets into your release build, you've got much bigger problems than an external SDK.
Re:UIDebuggingInformationOverlay by siphor on Friday May 26, 2017 @05:48PM (#14427455)
You don't need to embed a binary framework for Reveal. And I think it's still a lot better than the Xcode tool..

I like using it to fine tune the positions of views instead of guessing and re-running which happens occasionally. (Can't do that w/ Xcodes built in tool)

Re:UIDebuggingInformationOverlay by LeoNatan25 on Friday May 26, 2017 @06:00PM (#14427518)
Looks like it to me, or use some scripts in the debugger for the simulator.

http://support.revealapp.com/kb/getting-started/reveal-integ...

Still not the most convenient. I'm not sure why they need that server, because they can discover and modify everything using the runtime.

Re:UIDebuggingInformationOverlay by LeoNatan25 on Friday May 26, 2017 @06:01PM (#14427526)
You can't modify from the UI, but you can use the debugger to modify the instance values (using the object pointer).
Re:UIDebuggingInformationOverlay by CodeWriter23 on Friday May 26, 2017 @03:59PM (#14426730)
Dude! You win HN for the week, at least in the eyes of this guy, currently iOS developer guy. Just yesterday I was thinking to myself, how I needed some kind of tool to help me visualize the view hierarchy. I ended up setting different background colors on various views to understand my problem.

Thank you.

Re:UIDebuggingInformationOverlay by thedjinn on Friday May 26, 2017 @04:02PM (#14426747)
Don't forget there's also Xcode's built-in view debugger. Very useful tool!
Re:UIDebuggingInformationOverlay by CodeWriter23 on Friday May 26, 2017 @09:31PM (#14428430)
Ha! My second hero of the week. Note to self: explore all menu options.
Re:UIDebuggingInformationOverlay by ryanipete on Friday May 26, 2017 @04:06PM (#14426772)
Glad it helped you. And thedjinn is right, Xcode's view debugger is really nice if you haven't tried it. I'd prefer it to the debugging overlay whenever you're running from Xcode.
Re:UIDebuggingInformationOverlay by sharp11 on Friday May 26, 2017 @11:42PM (#14428817)
If you don't know about Reveal app, you must. Indispensable. http://revealapp.com
Re:UIDebuggingInformationOverlay by LeoNatan25 on Friday May 26, 2017 @05:20PM (#14427275)
recursiveDescription is still the most convenient way.
Re:UIDebuggingInformationOverlay by yla92 on Friday May 26, 2017 @10:27PM (#14428628)
Not the iOS dev here. I heard good things about PonyDebuggr[0] from Square:

[0] : https://github.com/square/PonyDebugger

Re:UIDebuggingInformationOverlay by gallerdude on Friday May 26, 2017 @01:10PM (#14425612)
Not surprised all that much of Apple's hidden tools. I'd totally sign a NDA in order to see the hidden past of Apple.
Re:UIDebuggingInformationOverlay by vshni02 on Friday May 26, 2017 @03:20PM (#14426487)
Flex does same + more (network logs) https://github.com/Flipboard/FLEX
Re:UIDebuggingInformationOverlay by disposition2 on Friday May 26, 2017 @04:00PM (#14426738)
Just a note about your site. The 'Website' link on the left pane, it seems to 404 on just about every page. It looks like it is a relative link, rather than static because the domain is getting appended to the end of each source URL.

Neat find.

Re:UIDebuggingInformationOverlay by ryanipete on Friday May 26, 2017 @04:03PM (#14426753)
Thanks for the heads up!
Re:UIDebuggingInformationOverlay by catoc on Tuesday June 06, 2017 @09:03AM (#14496871)
Doesn't seem to work anymore in iOS11 (developer beta on device)
Re:UIDebuggingInformationOverlay by mchrome on Friday May 26, 2017 @01:52PM (#14425917)
Pretty cool. Hopefully they make it public in the next developer release.
Re:UIDebuggingInformationOverlay by jclardy on Friday May 26, 2017 @02:57PM (#14426341)
I wonder when this was actually added, maybe it is getting ready for an actual release in iOS 11 later this year.
Re:UIDebuggingInformationOverlay by ianburns on Friday May 26, 2017 @04:22PM (#14426858)
Looking back at UIKit headers it looks like it was added in iOS 9.
Re:UIDebuggingInformationOverlay by Kipters on Friday May 26, 2017 @05:31PM (#14427357)
Shameless plug: My post[0] about how to call it from Xamarin

[0] https://kipters.net/post/ios-debugging-overlay/