In Kotlin there is this nice extension function that allows us to write
var viewModel: MyViewModel by viewModels()
Is it possible to have the same thing for ViewBindings? Currently I am using this (in Activities):
var viewBinding: MyViewBinding by lazy { MyViewBinding.inflate(layoutInflater) }
It works but feels a bit clumsy. I'd rather have it like the following but do not know how to implement that:
var viewBinding: MyViewBinding by viewBindings()