Regarding the ToggleChip in Compose Wear OS Alpha ...
# compose-wear
y
Regarding the ToggleChip in Compose Wear OS Alpha 21, switchIcon() returns now an ImageVector. As i use the following code, the switch Icon doesn’t show anymore in ToggleChip.
Copy code
ToggleChip(
    modifier = modifier,
    checked = checked,
    toggleControl = {
        ToggleChipDefaults.switchIcon(checked = checked)
    },
    onCheckedChange = {
        checked = it
    },
Is there any additional steps in
toggleControl
I will need to display the switch icon as that of Alpha 20?
k
y
Thanks for the examples to wrap ImageVector with Icon composable. Now the sentence in the change log “… encourages developers to create their own `Icon()`composables with an appropriate
contentDescription
” also makes sense.