Skip to content

Instantly share code, notes, and snippets.

@regnerjr
Last active September 24, 2019 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save regnerjr/8ef867f74dd27fc5e707e35d0569b61e to your computer and use it in GitHub Desktop.
Save regnerjr/8ef867f74dd27fc5e707e35d0569b61e to your computer and use it in GitHub Desktop.
100 Days of Swift UI Notes

100 Days of Swift UI my notes and tracking my progress

  • Day 1
    • Oh yeah you can use _ as a number separator in Int's
    • Some easy getting started stuff about var vs. let Double Int Bool String and multi line string declarations
    • You can use mulit line string even when you dont want mulit line output by escaping the newlines.
  • Day 2
    • Tuples are fixed in size and fixed in type once you create them let tup = ("one", 1) will always be of type (String, Int) you can not change the type of either of the items or add more to the beginning or end.
    • Syntax for adding a default when doing a dictionary lookup let value = mydict["key", default: 3] wonder why this syntax exists? How is it different from let value = mydict["missing_key"] ?? 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment