Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created September 4, 2022 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/dad7b45162199747f7898bef935c0beb to your computer and use it in GitHub Desktop.
Save laevandus/dad7b45162199747f7898bef935c0beb to your computer and use it in GitHub Desktop.
extension ContentView {
@MainActor final class ViewModel: ObservableObject {
func prepare() {
//
}
}
}
extension OtherView {
@MainActor final class ViewModel: ObservableObject {
func prepare() async {
//
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment