ChiliLabs/CHIPageControl

How to change the alpha of the inactive indicators ?

Mohammed-Elias opened this issue ยท 13 comments

The alpha of the inactive indicators is too much, is there any way to reduce it ?

hi @Mohammed-Eliass ,
Use .inactiveTransparency for that. It can be changed in code or in Interface builder.

Thanks for this awesome library !
Apparently the min is 0, Could you please tell me the max of this value?

you are welcome :)

Value of .inactiveTransparency should be in range 0 - 1, default is 0.4.

I think there's a problem in the IB, took a look please !

screen shot 2017-07-24 at 3 34 29 pm

try to enter 0,2 (or 0.2) manually

Nothing happened :(

pageControl.tintColor = .yellow
pageControl.currentPageTintColor = .yellow
pageControl.inactiveTransparency = 0.2

Then I got this photo :( , even in the IB I removed everything and leave it empty

screen shot 2017-07-24 at 4 11 57 pm

same old, same old !
I gave it 0,1 .. 0,9 in IB nothing
with code 0.1 .. 0.9 the same.

have you checked the example project?

yeah, the example works, but the version I got I newer than the example, could you please try it on your local machine (the current version) !

example can't be older, it uses same files. In podfile pod 'CHIPageControl', :path => '../'
Are you using cocoapods or carthage ?

Cocoapods !

This's the version I'm working with, it's the same as the example project (My fault sorry) :
screen shot 2017-07-24 at 5 08 31 pm

Xcode Bug everything work after restarting Xcode, your library is awesome ๐Ÿ‘