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:

attributes inspector

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: 0,5

here it's 0,8, not 0.8: 0,8


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -