diff --git a/README.md b/README.md index 1f290d0..6d61385 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ # compose-swipeBox +Release Version 0.0.1 diff --git a/swipebox/src/main/java/com/kevinnzou/compose/swipebox/widget/SwipeContent.kt b/swipebox/src/main/java/com/kevinnzou/compose/swipebox/widget/SwipeContent.kt index e674551..a7a05bc 100644 --- a/swipebox/src/main/java/com/kevinnzou/compose/swipebox/widget/SwipeContent.kt +++ b/swipebox/src/main/java/com/kevinnzou/compose/swipebox/widget/SwipeContent.kt @@ -12,6 +12,13 @@ import androidx.compose.ui.graphics.Color /** * Created By Kevin Zou On 2022/12/24 + * + * Wrap the real content into a box with weight set and align the content at center + * + * @param background the background color of the box + * @param weight the weight of the box + * @param onClick the action to be executed when the box is clicked + * @param content the real content of the box */ @Composable fun RowScope.SwipeContent( diff --git a/swipebox/src/main/java/com/kevinnzou/compose/swipebox/widget/SwipeIcon.kt b/swipebox/src/main/java/com/kevinnzou/compose/swipebox/widget/SwipeIcon.kt index 51b67ca..efc7b1e 100644 --- a/swipebox/src/main/java/com/kevinnzou/compose/swipebox/widget/SwipeIcon.kt +++ b/swipebox/src/main/java/com/kevinnzou/compose/swipebox/widget/SwipeIcon.kt @@ -16,6 +16,10 @@ import androidx.compose.ui.unit.dp /** * Created By Kevin Zou On 2022/12/23 + * + * Wrap the Icon into the [SwipeContent] with required size so that the icon size will + * not change with the outside container + * */ @Composable fun RowScope.SwipeIcon(