Learning Swift — Days 127-131

Strengthening our skills Day 127 part 2 Xcode Shortcut commands Navigation Area Cmd-0: hides or shows the Navigator Cmd-1…8: cycles through the different navigators Cmd-Option-0: hides of shows the Inspectors Cmd-Option-1…8: cycles through the different (available) inspectors. Cmt-Shift-Y: hides or shows the Debug area Editors Cmd-Option-Enter: invokes the Assistant Editor Cmd-Enter: go back to StandardContinue reading “Learning Swift — Days 127-131”

Learning Swift — Days 125-127

Hacking with Swift — Day 99 — Consolidation Day X Applying MVC to the project An MVC Recap The Model is the what or our application (but not how it is displayed). The Controller is how our model is presented to the user (and represents the UI logic) and the view is our controller’s minions!Continue reading “Learning Swift — Days 125-127”

Learning Swift — Days 123-124

Swift Language Reference Day 123: Declarations (cont.) Special Kinds of Parameters: parameters can be ignored, take a variable number of values, and provide default values. An underscore (_) parameter is explicitly ignored and can’t be accessed within the body of the function. A parameter with a base type name followed immediately by three dots (…)Continue reading “Learning Swift — Days 123-124”

Learning Swift — Days 120-122

Swift Language Reference Day 120 part 2 Let’s now delve into the Language Reference. It should not be too long before I can start building apps again! Lexical Structure The lexical structure of Swift describes what sequence of characters form valid tokens of the language. These valid tokens form the lowest-level building blocks of theContinue reading “Learning Swift — Days 120-122”