Calculate
public struct Calculate : Shortcut
Performs a number operation on the input and returns the result.
Input: Text, Health sample, Boolean, Workout sample, Blood pressure, Number, Time interval, Date, File size, Currency Amount, Measurement
Result: Number
-
The contents of the shortcut.
Declaration
Swift
public var body: some Shortcut { get }
-
Initializes the shortcut.
Declaration
Swift
public init(_ calculation: Calculation)
Parameters
calculation
The calculation to compute.