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

Class

A object that displays an editable text area with incrementing or decrementing a value.


Declaration

public struct InputNumber: View

Overview

An input field with the ability to enter numerical values ​​by pressing with a given step.

Live example

Configure a SmallInformer

@State var value: Double = 10.0
  InputNumber(
    titleText: .constant("Optional text"),
    value: $value,
    minimumValue: .constant(5.0)
  )

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.