Open ashfurrow opened 9 years ago
Could make the ifs internally default to animated && (NSClassFromString(@"XCTest") != nil)
thus dealing with the auto NO
in tests.
That'd be awesome! I was thinking of that, but the only thing I could thing of is seeing if the bundle name contains "Test", which isn't reliable. I like this a lot :+1:
if you do this make a static var for fast lookups
this would be cool, instead of having to set it to NO on every view controller instance in tests.
We could create a category on
UIViewController
that uses associated objects to store a boolean property, which defaults toYES
if not set, that users of the library can use (we define this property on, like, all of our controllers anyway). We could even do something fancy with preprocessor macros on test targets to default toNO
instead.Thoughts @orta @1aurabrown ?