diff --git a/documentation/interactions/usage.md b/documentation/interactions/usage.md index 30e0f12cf..5dcc8e77f 100644 --- a/documentation/interactions/usage.md +++ b/documentation/interactions/usage.md @@ -85,26 +85,6 @@ fun SomeComposable() { } ``` -You can also make use of the `AppyxComponent` composable, if you have components that allow gestures to control them: - -```kotlin -@Composable -fun SomeComposable() { - AppyxComponent( - modifier = Modifier, - screenWidthPx = (LocalConfiguration.current.screenWidthDp * LocalDensity.current.density).roundToInt(), - screenHeightPx = (LocalConfiguration.current.screenHeightDp * LocalDensity.current.density).roundToInt(), - appyxComponent = yourComponent, - gestureValidator = permissiveValidator, - ) { elementUiModel -> - YourElementComposable( - elementUiModel = elementUiModel, - modifier = elementUiModel.modifier - ) - } -} -``` - ## Interacting with the AppyxComponent How you use your model will depend on the specific component. However, typically, you will have a high level API to trigger changes, such as: