InputRangeTextField SwiftUI - admiral-team/admiralui-ios GitHub Wiki

Class

An object that displays an editable text area and slider.


Declaration

public struct InputRangeTextField<T>: TextFieldInput, AccessabilitySupportUIKit, Identifiable where T: View

Overview

An input field with a slider allows you to select a value from the indicated range by swiping or using manual input. Any text value (rubles, dollars, days, years, etc.) can be added to the range. In this case, the value is substituted only in the input field. The Input Range element can be used independently of the input field. Change the position of the slider: In the layers, select Change kerning, then in the text options change the Letter Spacing (Kerning) parameter

Live example

Configure a InputRangeTextField

InputRangeTextField(
     .constant("Text"),
     placeholder: "Placeholder",
     name: "Optional label",
     state: .constant(.normal),
     info: .constant("Additional text"),
     sliderValue: 100,
     minValue: 100,
     maxValue: 1000
)

Contribution

You can help us to find bugs or ask us to add features.

  • To start issue please use ready-made templates.
  • To make changes to the repository, you need to create a fork of the project, make changes to the code and create a pull request in our project. You can read more about this in the Github documentation.