Skip to content

implement RadioButton #9

Description

@UnGast

Should support grouping, i.e. of multiple RadioButtons only one can be selected at any given time.

Example of drawing a Widget with a circle inside a circle: the task completion indicator of the todo demo app
/Sources/TaskOrganizerDemo/UI/TaskCompletionButton.swift

For how to mutably bind the state of the RadioButton see: TextInput:
specifically:

public final class TextInput: ContentfulWidget
{
  @MutableBinding public var text: String

  ...

  public init(
    text textBinding: MutableBinding<String>,
    placeholder: String = "") {
        
      self._text = textBinding
      ...

Code should go into: Sources/WidgetGUI/Widgets/Standard/Controls/RadioButton.swift (existing code is outdated)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions