Skip to content

Instantly share code, notes, and snippets.

View Atwa's full-sized avatar

Ahmed Atwa Atwa

View GitHub Profile
View BackStackViewModels.kt
package com.atwa.navigation
import androidx.annotation.IdRes
import androidx.annotation.MainThread
import androidx.fragment.app.Fragment
import androidx.hilt.navigation.HiltViewModelFactory
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelLazy
import androidx.navigation.fragment.findNavController