peterfriese / MakeItSo

This is the source code for Make It So, the sample app accompanying my blog post "Replicating the iOS Reminders App Using SwiftUI and Firebase"

Home Page:https://twitter.com/peterfriese/status/1453467058302291975

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in Resolver code block on website

raboley opened this issue · 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.