ios - IBInspectable and floating point values -
is possible set floating point value in attributes inspector? have property in uiview:
@ibinspectable var scale: cgfloat = 0.90 { didset { setneedsdisplay() } }
as can see, default value 0.9 , change in attributes inspector, looks that:
and able set integer values in there. missing something?
you can set it. worked me using comma when entering number instead of period. , commented @alladinian:
[t]he decimal separator [might be] locale (region) dependant.
here it's 0,5
, not 0.5
:
here it's 0,8
, not 0.8
:
Comments
Post a Comment