Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Resolver code block on website #67

Open
raboley opened this issue Nov 10, 2021 · 0 comments
Open

Bug in Resolver code block on website #67

raboley opened this issue Nov 10, 2021 · 0 comments

Comments

@raboley
Copy link

raboley commented Nov 10, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant