mirror of
https://github.com/rive-app/rive-ios.git
synced 2026-01-18 17:11:28 +01:00
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:
@@ -1 +1 @@
|
||||
1d2c69015aeacaf3f4ef1725b90d3745f0ceb5c6
|
||||
05e1b4ab9f8d6b9596fdc1676cbeab7cf535d609
|
||||
|
||||
@@ -23,6 +23,7 @@ typedef NS_ENUM(NSInteger, RiveDataBindingViewModelInstancePropertyDataType) {
|
||||
RiveDataBindingViewModelInstancePropertyDataTypeAssetImage,
|
||||
RiveDataBindingViewModelInstancePropertyDataTypeArtboard,
|
||||
RiveDataBindingViewModelInstancePropertyDataTypeInput,
|
||||
RiveDataBindingViewModelInstancePropertyDataTypeAny,
|
||||
} NS_SWIFT_NAME(RiveDataBindingViewModelInstancePropertyData.DataType);
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -42,6 +42,8 @@ RiveDataBindingViewModelInstancePropertyDataTypeFromRuntime(rive::DataType type)
|
||||
return RiveDataBindingViewModelInstancePropertyDataTypeArtboard;
|
||||
case rive::DataType::input:
|
||||
return RiveDataBindingViewModelInstancePropertyDataTypeInput;
|
||||
case rive::DataType::any:
|
||||
return RiveDataBindingViewModelInstancePropertyDataTypeAny;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Submodule submodules/rive-runtime updated: 68c68d2a03...74bdfa7697
Reference in New Issue
Block a user