serialization support coming in Kotlin 2.1.0, is there any plan to support Uuid as a built-in type in Navigation Compose safe arguments?
Currently we have to add a custom NavType to any navigation composable which is going to accept
kotlin.uuid.Uuid
as a safe argument.
h
Hristijan
10/03/2024, 8:28 PM
Currently we have to add a custom NavType to any navigation composable which is going to accept
kotlin.uuid.Uuid
as a safe argument.
Doing the same or passing a string at the moment but only at a place where the string part of the Uuid is used.
Providing a custom NavType for the UUID should also be trivial to do in your own code
a
Armond Avanes
10/04/2024, 2:12 PM
@Stylianos Gakis I'm already using custom NavType, but repeating the same for every single composable, accepting Uuid as safe argument, is not optimal. That was my point and having a built-in support will resolve this issue.