DEV Community

Nathan Mattes
Nathan Mattes

Posted on • Originally published at zeitschlag.net on

100 Days of SwiftUI — Day 14

I skipped yesterday's part of 100 Days of SwiftUI, as I had a very stressful day at work and afterwards, it was pretty late and there wasn't much energy left.

So, today was my 14th day. It was the second review day of the basics. Again, I didn't learn very much, but I really like how Paul explained the main differences between structs and classes:

  • No automatically generated memberwise initializers, but DIY ones are required instead
  • inheritance
  • reference type instead of value type.

Oh, and then there was this @objcMembers-attributes. I didn't hear of it before, but it might come in handy, when it comes to Objective C-y legacy code. At least, in some cases, sometimes.

One important thing's still missing in the review-part: Closures. I guess, that'll be part of Day 15, then.

Top comments (0)