DiveKit
public class DiveKit
DiveKit object holds values for water type and unit of measurements.
-
Initializes a
DiveKitobject using default values ofDiveKit.WaterType.saltWaterandDiveKit.MeasurementUnit.imperial.Since
1.0Declaration
Swift
public static let `default`: DiveKit
-
The type of water to use when performing calculations.
See moreDeclaration
Swift
public enum WaterType : String, Codable -
The unit of measurement to use when performing calculations, also which unit of measure calculations will be returned in.
See moreDeclaration
Swift
public enum MeasurementUnit : String, Codable -
An object to hold values for constants.
See moreDeclaration
Swift
public struct Constants -
An object to hold string representations of units for depth, weight, volume and pressure.
See moreDeclaration
Swift
public struct Units
-
Property storing the water type to be used by an instance of a DiveKit object.
Declaration
Swift
private(set) public var waterType: DiveKit.WaterType { get } -
Property storing the unit measure to be used by an instance of a DiveKit object.
Declaration
Swift
private(set) public var measurementUnit: DiveKit.MeasurementUnit { get } -
Property storing constant values based on
DiveKit.WaterTypeandDiveKit.MeasurementUnitDeclaration
Swift
public var constants: DiveKit.Constants { get }
-
Initializes a
DiveKitobject using provided parametersSince
1.0Declaration
Swift
public convenience init(waterType: DiveKit.WaterType, measurementUnit: DiveKit.MeasurementUnit)Parameters
waterTypemeasurementUnit -
See moreDiveKit.Erroris the error type returned by DikeKit. It encompasses a few different types of errors, each with their own associated reasons.Declaration
Swift
public enum Error : LocalizedError
DiveKit Class Reference