NumericOptionItemInputHelper
public struct NumericOptionItemInputHelper
This struct helps a NumericOptionItem object to display an input box.
-
Creates a new NumericOptionItemInputHelper object.
Important
Either title or message must be provided.Declaration
Swift
public init(title: String? = nil, message: String? = nil, keyboardType: UIKeyboardType = .numbersAndPunctuation, placeholder: String? = nil, validator: @escaping ((String) -> Bool))
Parameters
title
Title of the input box.
message
Message of the input box.
keyboardType
Type of the input keyboard.
placeholder
Placeholder of the input box.
validator
Input validator function.