Swift Property Wrappers

Availability: All.

actions

Actions don’t have a corresponding property wrapper, click here for details on implementing the required methods.

BOOL properties

@BoolProperty(description, restart)

Int properties

@IntPropertySlider(min, max, icon, description, restart)
@IntPropertyEdit(min, max, regex, description, restart)
@IntPropertyList(description, restart, values)
@IntPropertyListEdit(min, max, regex, description, restart, values)

float properties

@FloatPropertySlider(min, max, icon, description, restart)
@FloatPropertyEdit(min, max, regex, description, restart)
@FloatPropertyList(description, restart, values)
@FloatPropertyListEdit(min, max, regex, description, restart, values)

double properties

@DoublePropertySlider(min, max, icon, description, restart)
@DoublePropertyEdit(min, max, regex, description, restart)
@DoublePropertyList(description, restart, values)
@DoublePropertyListEdit(min, max, regex, description, restart, values)

plain String properties

@StringPropertyEdit(regex, description, restart)
@StringPropertyList(description, restart, values)
@StringPropertyListEdit(regex, description, restart, values)

encrypted NSString properties

@EncryptedStringPropertyListEdit(regex, description, encrypted, restart, values)
ENCRYPTED()
ENCRYPTED_STRING(plaintext, ciphertext)
ENCRYPTED_STRING_IOS_WATCHOS(plaintext, ciphertextIOS, ciphertextWatchOS)