MakeItSo icon indicating copy to clipboard operation
MakeItSo copied to clipboard

Bug in Resolver code block on website

Open raboley opened this issue 2 years ago • 0 comments

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.

raboley avatar Nov 10 '21 22:11 raboley