Adds a new quantity to the series with the provided date interval.
- iOS 13.0+
- Mac Catalyst 13.0+
- watchOS 6.0+
The quantity to insert.
The date interval associated with the quantity. If the interval’s
startparameter is the same as the start date for a previously provided quantity, this quantity replaces the previous one.
If an error occurs, the system sets this parameter to an
NSErrorobject that describes the problem. If you are not interested in possible errors, you may pass in
Use this method to add a quantity to the series. The quantity must have a unit that is compatible with the series builder’s quantity type (see