The Swift SDK playgrounds(completion handler) and test cases(completion handler and async/await) provide a number of examples. From the test cases, a completion handler query cane be done:
The async/await version looks like (there’s also a Combine version):
In terms of simple MVVM with SwiftUI (my first post shows how to do a more sophisticated one), the Swift SDK provides a number of items out-of-the-box. The assumptions are:
The documentation states that every Query has a viewModel property automatically. This allows you to be able to create views that displays your ParseObjects easily. The playgrounds demonstrates this below: