Coder Social home page Coder Social logo

Comments (5)

DavydLiu avatar DavydLiu commented on June 15, 2024

Great suggestion! I'd be tentative to add an new API for selected color. But I'll add force redraw if any color or size changed.

from dlradiobutton.

Remyoman avatar Remyoman commented on June 15, 2024

@DavydLiu That sounds reasonable, thanks for the quick response!

from dlradiobutton.

DavydLiu avatar DavydLiu commented on June 15, 2024

Updated to 1.3.2, I figured out the most elegant solution would be using UIButton's title color for selected color.

Basically, you only need to set a different title color for the Radio button. That's it. Let me know if this works.

from dlradiobutton.

Remyoman avatar Remyoman commented on June 15, 2024

Works great, this was exactly what I wanted it to behave. Thanks again for the quick update!

I set the title color for the selected and normal states and just change the selected state as usual.

from dlradiobutton.

philipborbon avatar philipborbon commented on June 15, 2024

Is there any way to change iconColor and indicatorColor after the button is drawn regardless if it's selected or not?

from dlradiobutton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.