WriteableProperty

public class WriteableProperty<TypeSpec> : Property<TypeSpec> where TypeSpec : PropertyTypeSpec

A property that can be set. Writes happen asynchronously.

  • The value of the property. Reading is instant and synchronous, but writing is asynchronous and the value will not be updated until the write is complete. Use set to retrieve a promise.

    Declaration

    Swift

    public final override var value: PropertyType { get set }
  • Sets the value of the property.

    Declaration

    Swift

    public final func set(_ newValue: NonOptionalType) -> Promise<PropertyType>

    Return Value

    A promise that resolves to the new actual value of the property.