Junior — Senior
Data retrieval initiation upon screen display
livecode
Task condition
Bind the NetworkService to the HomeView and, when this view appears, trigger the asynchronous method fetchData() to load the necessary data.
final class NetworkService {
func fetchData() async throws -> Int {
return 5
}
}