Swift / Experiments

Testing & Experiments

Experiments with formatting, Swift code, and educational callouts.

important

note

very important

Important rule Note: This is subtle behavior

Rule: Explanation text goes here.

let x = 10

struct User {
    let id: Int
}

Code

let name = "Taha"

Or visually:

Code:

  1. First rule
  2. Second rule
  3. Third rule
Warning: This crashes at runtime.
Tip: Prefer value types.
Note: ARC applies only to class instances.