MakeItSo
MakeItSo copied to clipboard
Bug in Resolver code block on website
Hi! Thanks again for this great guide! I found a bug with the Resolver code block missing a .
In your article: https://peterfriese.dev/replicating-reminder-swiftui-firebase-part1/#binding-the-view-models
In the code block below, application
should be .application
// File: AppDelegate+Resolving.swift
extension Resolver: ResolverRegistering {
public static func registerAllServices() {
register { TestDataTaskRepository() as TaskRepository }.scope(application)
}
}
like so:
// File: AppDelegate+Resolving.swift
extension Resolver: ResolverRegistering {
public static func registerAllServices() {
register { TestDataTaskRepository() as TaskRepository }.scope(.application)
}
}
Simple fix got me going, but had me scratching my head as a new swift developer. If you don't want me to make issues here based on your website let me know and I will stop the feedback :)
Thanks again for the help! This article has been super helpful, and I am excited for the next few sections.