Material

public class Material : Item

A material that an Item is (partially) made from, for instance cotton, paper, steel, etc.

  • The name of the item.

    Declaration

    Swift

    @objc
    dynamic var name: String?
  • The default quantity, for instance 1 g or 0.25 L

    Declaration

    Swift

    @objc
    dynamic var defaultQuantity: String?
  • The price or cost of an Item, typically for one instance of the Item or the defaultQuantity.

    Declaration

    Swift

    var price: Results<Measure>? { get }
  • Undocumented

    Declaration

    Swift

    public required convenience init(from decoder: Decoder) throws