Structures and Classes in Swift: Value vs. Reference Types
Structures and classes look almost identical in Swift: both have properties, methods, initializers, and extensions, and both can conform to protocols. The...
A personal blog by Deya Elkhawaldeh
Insights, ideas, and practical guides on
Swift, iOS development, and the Apple ecosystem.
Structures and classes look almost identical in Swift: both have properties, methods, initializers, and extensions, and both can conform to protocols. The...
A closure is a block of code you can pass around and run later, together with the variables it uses from its...
Functions are the verbs of your code. Swift’s function syntax looks simple, but it’s carefully designed: argument labels make call sites read...
Pattern matching is how Swift asks “does this value look like that?” and pulls the interesting parts out in the same breath....
Almost every app is a story about lists and lookups: a feed of posts, a table of settings, a cache keyed by...