-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor AppyxComponent and application of draggable modifier #644
Refactor AppyxComponent and application of draggable modifier #644
Conversation
...teractions/common/src/commonMain/kotlin/com/bumble/appyx/interactions/core/AppyxComponent.kt
Fixed
Show fixed
Hide fixed
…ppyxComponent's child composable.
634ddfa
to
e3aafe0
Compare
… into 2.x-do-not-apply-if-no-gestures
} | ||
|
||
@Composable | ||
private fun <InteractionTarget : Any, ModelState : Any> ChildGestureSupportTransformBoundingBox( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point I'm not even sure if we need it
0e27637
to
5d6e917
Compare
5d6e917
to
241bef0
Compare
...n/src/commonMain/kotlin/com/bumble/appyx/interactions/core/ui/gesture/GestureSettleConfig.kt
Outdated
Show resolved
Hide resolved
6c2b2c9
to
a2bfcfe
Compare
11810d0
to
bc586ac
Compare
…ply-if-no-gestures
bc586ac
to
3f9a701
Compare
@@ -50,6 +50,11 @@ import com.bumble.appyx.interactions.core.ui.property.motionPropertyRenderValue | |||
|
|||
private val defaultExtraTouch = 48f.dp | |||
|
|||
enum class GesturesRelation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I'd extract this to a standalone file in the gestures package
- I'd rename to
GesturesReferencePoint
- I'd provide some comments on what they do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also for consistency, probably use singular rather than plural, the same as everywhere else
Description
appyx-interaction
now takes lambda for drawing children composable. Transition container is applied inside so we clients don't need to apply it themselves. Lambda has only one parameterElement
instead ofElementUiModel
appyx-navigation
takes lamda for decorating children composable UI. The UI itself is taken from Nodes. Lambda has only one parameterElement
instead ofElementUiModel
so we don't expose more than we shouldisGestureBoundingBoxTransformed
which takes into consideration rotation of the element when applying draggable modifier.Check list
CHANGELOG.md
if required.