Skip to content

Instantly share code, notes, and snippets.

@MarcoSignoretto
Created May 9, 2023 05:12
Show Gist options
  • Save MarcoSignoretto/498da793118837efa3967b338885c3f5 to your computer and use it in GitHub Desktop.
Save MarcoSignoretto/498da793118837efa3967b338885c3f5 to your computer and use it in GitHub Desktop.
import androidx.lifecycle.viewModelScope as androidViewModelScope
typealias AndroidViewModel = androidx.lifecycle.ViewModel
actual open class ViewModel : AndroidViewModel() {
actual val viewModelScope: CoroutineScope = androidViewModelScope
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment