iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCISmartPropertyDouble

@interface SCISmartPropertyDouble : NSObject

Defines a smart property class which can hold double value.

  • Creates a new instance of SCISmartPropertyDouble class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDefaultValue:(double)defaultValue;

    Swift

    init(defaultValue: Double)

    Parameters

    defaultValue

    The default value for property.

  • Gets the current property value.

    Declaration

    Objective-C

    @property (readonly, nonatomic) double value;

    Swift

    var value: Double { get }
  • Sets weak value for this property if it was not overridden by -setStrongValue: call.

    Declaration

    Objective-C

    - (void)setWeakValue:(double)newValue;

    Swift

    func setWeakValue(_ newValue: Double)

    Parameters

    newValue

    The new value for property.

  • Sets weak value for this property which overrides any previously set value.

    Declaration

    Objective-C

    - (void)setStrongValue:(double)newValue;

    Swift

    func setStrongValue(_ newValue: Double)

    Parameters

    newValue

    The new value for property.