Sorry the issue is a quick typing error, for a correction the ViewModel should be as follows
swift
final class ViewModel: ObservableObject {
init() {
print("initialised")
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: