jossiwolf
03/30/2023, 9:57 AMModifier.swipeAnchors
. We are also considering renaming Swipeable to AnchoredDraggable.
We brainstormed some options but are also open to other ideas :)
1️⃣ Modifier.dragAnchors
2️⃣ Modifier.configureAnchors
3️⃣ Modifier.layoutAnchors
4️⃣ Modifier.draggableTargets
5️⃣ Modifier.withSwipeAnchors
6️⃣ Other - please commentgsala
03/30/2023, 10:26 AMpossibleValues
parameter from the KDocjossiwolf
03/30/2023, 10:30 AMStylianos Gakis
03/30/2023, 10:30 AMswipeAnchors
makes it sound like you’re actually swiping something 😄withSwipeAnchors
feels like the best of all cases.
• It preserves the swipe
name in there, indicating that it’s linked with the SwipeableState
and should be used along with it. Which layoutAnchors
and the other options don’t indicate
• It is not a verb which would make it look like you are actively swiping some anchors. Something which is not happening here, as this just setting the anchors themselves. withSwipeAnchors
is pretty good at showing that imo
Just my 2c 😊Pablichjenkov
03/30/2023, 5:26 PMeygraber
03/30/2023, 5:39 PMwith*
fits in with most other modifiers. I was thinking something like swipeableAnchors
or draggableAnchors
mgrazianodecastro
03/30/2023, 6:36 PMswipeableAnchors
feels goodJoel Denke
03/30/2023, 6:43 PMeddie
03/30/2023, 10:15 PMswipeAnchors
works just fine. Like many words in English, "swipe" isn't just a verb but it can also be a noun, and in either case here the more grammatically-relevant aspect is that it serves to modify "anchors". You could spend a long time trying to find an unambiguous alternative. For instance, you could call it gravityWells
, because "gravity" is virtually always a noun and whether you're swiping or dragging the physical effect is the same, but then you'll still have people pointing out that "wells" can also be a verb. (And as if to prove my point, this message is already long enough.)
swipeAnchors
is short and sweet while in this case still accurately conveying what is being contributed.