DEV Community

Nathan Mattes
Nathan Mattes

Posted on • Originally published at zeitschlag.net on

1

100 Days of SwiftUI — Day 9

Ninth day of a hundred, ninth blogpost. I guess, you know the drill.

Todays topic was structs again. Paul explained memberwise initialzers, access control — public and private — and lazy and static properties. I learned, that when you have a struct with at least one private property, you're forced to write your own initializers, as you can't rely on the generated, memberwise initializer to initialize all values. Well, at least, as long as you don't provide default values for these private properties.

When you think about it, this totally makes sense. Also, for the first time, Paul provided lots of useful and intersting additional information, like What’s the point of access control?

I'm getting used to attending this course daily. Oh, and it's fun! Thank you, Paul.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay