- PRESENTATION
- Who Is This For?
- Basic Philosophies
- History
- Swift Language Usage
- What This Presentation Covers
- Some Basics
- Main Characteristics
- More Phun Phacts
- Why I Love Swift
- Compiled, but Looks Like A Scripted Language
- Protocols (AKA “Interfaces”)
- Extensions
- Enums
- Generics
- Optionals
- Branches
- Collections and Ranges
- Conclusion
- Many Rabbit-Holes to Explore
- REFERENCES
- PLAYGROUNDS
Series: Swiftwater
The name “Swiftwater” stems from this book, which I read as a kid in the 7th or 8th grade.
This series deals with my maturation as a Swift developer. Although I’ve been writing (and releasing apps in) Swift since 2014, I still need to learn a lot more.
As I learn, I’ll occasionally need to explore certain concepts by creating a big playground, and experimenting with the concept.
For some of these, I plan to create blog posts. I like to explore “why” something is. I don’t just like to accept “that it is.”
I also like to try to bend, fold, spindle and mutilate. I want to find the boundaries.
Every one of these topics is deeper than what I cover here, but I think that I generally get to the heart of things, and explore application in a real-world scenario.
Another reason that I am writing this series is as “a note to self.” I work at a fairly blistering pace, and often forget stuff I don’t use, so I need notes to refresh my memory.
Swift Functions
- FUNCTION SIGNATURES
- Standard Swift Parameters
- Standard Swift Parameters, with Argument Labels
- Wildcard (Unnamed) Swift Parameters
- Function Signatures Varied by Return Type
- Mixing Parameter Names, Wildcards and Argument Labels
- Named Parameters and Function Types (Variables)
- CLOSURES
- APPLYING DEFAULT VALUES TO PARAMETERS
- VARIADIC FUNCTION PARAMETERS
- SAMPLE PLAYGROUND
Closures, Context and Capture -Part Deux
- FURTHER DOWN THE RABBIT-HOLE
- When Something is “Captured,” Can We Affect it Outside of Our Closure Scope?
- I see your global-context closure, and raise you a class-bound closure.
- What About “
self
“? How Does That Factor Into a Capture Scenario? - What Context Governs the captured entities? Declaration, Instantiation or Execution?
- Can We Use “unowned” Instead of “weak”?
- CONCLUSION
- SAMPLE PLAYGROUND