SwiftUI: Understanding Declarative Programming

Confused by declarative programming? Don’t worry, I’ll

Michael Long
Jun 19 · 6 min read

Functional Programming

Views

Nested Functions for the Win

Modifiers

Text("Your mileage my vary.")
.font(.footnote)
.foregroundColor(.secondary)

What About Our Data?

Dynamic Data

Environment

@EnvironmentObject var settings: UserSettings
@Environment(\.colorScheme) var colorScheme: ColorScheme

Under the Hood

Animations?

Completion Block


Better Programming

Advice for programmers.

Michael Long

Written by

Michael Long (RxSwifty) is a Senior Lead iOS engineer at CRi Solutions, a leader in cutting edge iOS, Android, and mobile corporate and financial applications.

Better Programming

Advice for programmers.