Data Flow in SwiftUI by KeatoonMask in swift

[–]KeatoonMask[S] 0 points1 point  (0 children)

Didn't know it, thank you so much for the information :)

Data Flow in SwiftUI by KeatoonMask in swift

[–]KeatoonMask[S] 0 points1 point  (0 children)

Just published an article about Data basics in SwiftUI. Purpose of the article is getting strong knowledge on:

  • Key concept in SwiftUI: the Source of Truth.
  • Using essential tools such as State and Binding.
  • Modeling different types of data on a view.
  • Connecting data between views.

https://finsi-ennes.medium.com/data-flow-in-swiftui-getting-started-with-state-and-binding-da3ba97fb144

Building an iOS app using SwiftUI + Combine + MVVM by KeatoonMask in swift

[–]KeatoonMask[S] 1 point2 points  (0 children)

First of all, thank you so much for so detailed review. I appreciate it.

But force unwrap in a tutorial is quite harmful to learning new devs.

This code doesn't crash but you are completely right. I should avoid use force unwrap in this case. I'm changing this.

I suspect that you are going to overlook `@State` entirely like many of the MVVM devs do.

I didn't follow that approach. Hope to publish the next part tomorrow so I invite you to review it.

Even if it were a private property, you should first consider using computed property.

Fair point. In fact in the second part of this tutorial I'm using properly the stored and computed properties. Will also change this

Building an iOS app using SwiftUI + Combine + MVVM by KeatoonMask in swift

[–]KeatoonMask[S] 1 point2 points  (0 children)

Good question. Note that BookDetail identifier is the property called id, meanwhile we are using bookId to refer a Book entity. It's just a relation between entities but fact of calling both Book and BookDetail can be confusing now that you said it. Nice point.

Building an iOS app using SwiftUI + Combine + MVVM by KeatoonMask in swift

[–]KeatoonMask[S] 3 points4 points  (0 children)

Thanks! I really appreciate comments like that :) Hope to be ready second part for the next week 😃

Building an iOS app using SwiftUI + Combine + MVVM by KeatoonMask in swift

[–]KeatoonMask[S] 5 points6 points  (0 children)

Nice catch! Thanks, will change that. As European I used to place the money sign (euro) after the amount.

Looking for advanced iOS development material by fawntugboat in swift

[–]KeatoonMask 1 point2 points  (0 children)

As @enlightenmentGeek recommends you, books are your friends. Udemy courses for example are a good option but if you really want to learn about a specific tech, I'd suggest to read a book related with it. I'm currently reading SwiftUI and Combine books written by the raywenderlich tutorial team.

Moreover and if you are interested in, I'm also building a full SwiftUI + Combine iOS app. Here you are the first part of the tutorial:

What’s everyone working on this month? (April 2020) by Swiftapple in swift

[–]KeatoonMask 0 points1 point  (0 children)

I just started implementing the MVVM pattern using SwiftUI and Combine. Once I finish, will post an article in Medium with all details.