facebook/Tweaks — pull request #16 by dmur (2014-04-07 19:07:12+00:00)
Title: Assigns default max/min values when default value is float 0

Consider the following inline tweak declaration:

FBTweakValue(@"Foo", @"Bar", @"Baz", 0.)

The program will throw a `NSInvalidArgumentException 'stepValue must be greater than 0'` because the code computes max and min value in factors of the default value, and computes stepValue based on those values.

The workaround is to explicitly declare max and min values, but what if I don't want to do that? It seems that Tweaks should set some reasonable max and min values *for me* in this case, at least to prevent the exception. So, this patch proposes that change. If the default value is float 0, the max is set to 1 and min to -1.