TableRowStruct
struct TableRowStruct
Each element of the table data is a struct, with a label, atarget, and an action function
-
This is the string that the table row will display.
Declaration
Swift
var title: String
-
This is the argument to be sent into the action closure.
Declaration
Swift
var target: Any?
-
This is the action function that will be called if the row is selected.
Declaration
Swift
var action: ((Any) -> Void)?
-
The initializer allows a coupler of the arguments to be omitted.
Declaration
Parameters
title
REQUIRED. The string to display for the table row.
target
OPTIONAL: The Characteristic or Descriptor wrapper instance to be sent to the action. Meaningless if action is not also provided. Default is nil.
action
OPTIONAL: The function to call, passing the target as the argument. Default is nil.