chore: ScriptedDataConverter in runtime (#11053) 05e1b4ab9f

ScriptedDataConverters in C++ runtime. Adds a new DataType.any which allows a datavalue to be applied as long as the propertyKey type matches the datavalue's type.

Co-authored-by: Philip Chung <philterdesign@gmail.com>
This commit is contained in:
philter
2025-11-17 18:38:34 +00:00
parent 5527495b3f
commit c1337f1abf
4 changed files with 5 additions and 2 deletions

View File

@@ -1 +1 @@
1d2c69015aeacaf3f4ef1725b90d3745f0ceb5c6
05e1b4ab9f8d6b9596fdc1676cbeab7cf535d609

View File

@@ -23,6 +23,7 @@ typedef NS_ENUM(NSInteger, RiveDataBindingViewModelInstancePropertyDataType) {
RiveDataBindingViewModelInstancePropertyDataTypeAssetImage,
RiveDataBindingViewModelInstancePropertyDataTypeArtboard,
RiveDataBindingViewModelInstancePropertyDataTypeInput,
RiveDataBindingViewModelInstancePropertyDataTypeAny,
} NS_SWIFT_NAME(RiveDataBindingViewModelInstancePropertyData.DataType);
NS_ASSUME_NONNULL_BEGIN

View File

@@ -42,6 +42,8 @@ RiveDataBindingViewModelInstancePropertyDataTypeFromRuntime(rive::DataType type)
return RiveDataBindingViewModelInstancePropertyDataTypeArtboard;
case rive::DataType::input:
return RiveDataBindingViewModelInstancePropertyDataTypeInput;
case rive::DataType::any:
return RiveDataBindingViewModelInstancePropertyDataTypeAny;
}
}