April 15, 2022, 2:59 a.m. | Davmi Jose Valdez Ogando

DEV Community dev.to

Continuation of Hacking With Swift 100 Days of Swift


Day 8 (and 9)


Is all about structs, the basics can be quite simple


Creation

struct { var name: String }


Computed properties

Just like clases we can create properties that are based on other properties


Property Observers

We can trigger events after and before property value changes with the keywords didSet and willSet


Lazy Properties

When initializing a struct we most likely have to give it a value right away, …

swift

SOC 2 Manager, Audit and Certification

@ Deloitte | US and CA Multiple Locations

Cyber Systems Administration

@ Peraton | Washington, DC, United States

Android Security Engineer, Public Sector

@ Google | Reston, VA, USA

Lead Electronic Security Engineer, CPP - Federal Facilities - Hybrid

@ Black & Veatch | Denver, CO, US

Profissional Sênior de Compliance & Validação em TI - Montes Claros (MG)

@ Novo Nordisk | Montes Claros, Minas Gerais, BR

Principal Engineer, Product Security Engineering

@ Google | Sunnyvale, CA, USA