# Your Second iOS and SwiftUI App · Dependency Injection | raywenderlich.com

**URL:** <https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793>\
**Category:** 🎓 Courses & Articles\
**Created:** [October 12, 2019, 6:59pm UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793 "2019-10-12T18:59:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessycatterwaul](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jessycatterwaul/32/110937_2.png) [@jessycatterwaul](https://forums.kodeco.com/u/jessycatterwaul)\
**Post date:** [October 12, 2019, 6:59pm UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/1 "2019-10-12T18:59:54Z")

</div>

* * *
This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/5662524-your-second-ios-and-swiftui-app/lessons/7](https://www.raywenderlich.com/5662524-your-second-ios-and-swiftui-app/lessons/7)

---

<div class="post-metadata">

**Author:** ![jsiles42](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jsiles42/32/86717_2.png) [@jsiles42](https://forums.kodeco.com/u/jsiles42)\
**Post date:** [November 22, 2019, 1:44am UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/2 "2019-11-22T01:44:48Z")

</div>

Had an interesting bug crop up here. On the lines where Jessy changes the ContentView() call to ContentView( taskScore: TaskStore() ) he deletes the TaskStore placeholder and retypes the same code.

I neglected to delete the placeholder and just added the parenthesis. This creates a bug in the code whose “fix” is to delete the parenthesis but what really needs to happen is to delete the TaskStore placeholder and retype it.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [January 11, 2020, 10:57pm UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/3 "2020-01-11T22:57:37Z")

</div>

@jsiles42 Thank you for the heads up - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![kychris](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kychris/32/81494_2.png) [@kychris](https://forums.kodeco.com/u/kychris)\
**Post date:** [March 29, 2020, 8:11pm UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/4 "2020-03-29T20:11:00Z")

</div>

@jsiles42 helped me saved so much time, thank you for this!

---

<div class="post-metadata">

**Author:** ![vgadkari](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/vgadkari/32/81494_2.png) [@vgadkari](https://forums.kodeco.com/u/vgadkari)\
**Post date:** [May 4, 2020, 7:09pm UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/5 "2020-05-04T19:09:57Z")

</div>

He just made me delete a bunch of stuff that I needed??? I can’t even do the next part of this because I cant even load the preview? Whats up with that?

---

<div class="post-metadata">

**Author:** ![elspenyth](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/elspenyth/32/81494_2.png) [@elspenyth](https://forums.kodeco.com/u/elspenyth)\
**Post date:** [May 17, 2020, 1:52am UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/6 "2020-05-17T01:52:29Z")

</div>

I had the same issue. Thanks for posting the fix!

---

<div class="post-metadata">

**Author:** ![courso](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/courso/32/81494_2.png) [@courso](https://forums.kodeco.com/u/courso)\
**Post date:** [September 10, 2020, 1:09pm UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/7 "2020-09-10T13:09:34Z")

</div>

In my opinion the second app tutorial is much too advanced. There should be a tutorial in-between the first and the second app that will reinforce theory from the programming essentials video.

---

<div class="post-metadata">

**Author:** ![edwardgoomba](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/edwardgoomba/32/81494_2.png) [@edwardgoomba](https://forums.kodeco.com/u/edwardgoomba)\
**Post date:** [October 4, 2020, 1:33pm UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/8 "2020-10-04T13:33:42Z")

</div>

Starting a new app project now does not even include the scene delegate file - so this was a bit confusing. Ended up applying the same logic to `TaskListApp.swift` file.

---

<div class="post-metadata">

**Author:** ![jcatterwaul](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jcatterwaul/32/94210_2.png) [@jcatterwaul](https://forums.kodeco.com/u/jcatterwaul)\
**Post date:** [October 4, 2020, 10:57pm UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/9 "2020-10-04T22:57:45Z")

</div>

> [@edwardgoomba](#):
>
> Starting a new app project now does not even include the scene delegate file

It’s an option now.

> [@Your Second iOS and SwiftUI App · Models | raywenderlich.com](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-models-raywenderlich-com/84317/2):
>
> Would like to see this updated to cover Xcode12, since I haven’t got an AppDelegate nor a SceneDelegate, just a TaskList.app and I’ve no idea where to put things that I am being instructed to add to AppDelegate. Very confused. Maybe I should have selected UIKit for the lifecycle??

---

<div class="post-metadata">

**Author:** ![edwardgoomba](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/edwardgoomba/32/81494_2.png) [@edwardgoomba](https://forums.kodeco.com/u/edwardgoomba)\
**Post date:** [October 5, 2020, 4:09am UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/10 "2020-10-05T04:09:13Z")

</div>

Cool! I’ll look for that for the next project. Thanks for letting me know 🙂

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 9, 2021, 3:18pm UTC](https://forums.kodeco.com/t/your-second-ios-and-swiftui-app-dependency-injection-raywenderlich-com/84793/11 "2021-04-09T15:18:45Z")

</div>

@edwardgoomba Please check out the latest version of the course when you get a chance:

[https://www.raywenderlich.com/15234721-your-second-ios-and-swiftui-app](https://www.raywenderlich.com/15234721-your-second-ios-and-swiftui-app)

I hope it helps!
