XMSegmentedControl icon indicating copy to clipboard operation
XMSegmentedControl copied to clipboard

Is it possible to reduce the widget of the active option background view?

Open prakashraman opened this issue 7 years ago • 3 comments

Is it possible to reduce the widget of the active option background view?

I am basically trying to create the following.

segment-control

Is this possible using the library?

prakashraman avatar Jun 28 '17 16:06 prakashraman

Yes by handling the radius and corner options of the active background view you can make it a circle. There is no direct way of doing it via the exposed functions but adding a couple of lines to the source code will do.

Sent from my iPhone

On Jun 28, 2017, at 12:25 PM, Prakash Raman [email protected] wrote:

Is it possible to reduce the widget of the active option background view?

I am basically trying to create the following.

Is this possible using the library?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

xaviermerino avatar Jun 28 '17 16:06 xaviermerino

Ah, brilliant. Yes, that sounds simple enough. Let me see how to reference the active-background-view. In case I don't find - I shall seek your help again.

Thanks!

prakashraman avatar Jun 28 '17 17:06 prakashraman

@xaviermerino I guess I will have to access the property. "highlightview" right?

Also - it seems to have an access control of "fileprivate". Will I be able to access the property from my ViewController?

prakashraman avatar Jun 28 '17 17:06 prakashraman