
A brief look at Xcode and setting up your first Playground.
Create and format strings in Swift by declaring variables, using double quotes, escaping with backslashes for empty and other special characters, and printing with newlines to display a dashed list.
Count characters in a string using count elements in Swift, then convert text to uppercase or lowercase with the string properties using dot notation.
Explore boolean values, the true or false states, by declaring boolean variables and using the bool shorthand to denote the Boolean type.
Explore how the assignment operator in Swift executes the right-hand side before assigning its value to the left-hand side, clarifying value setting for variables and constants.
Learn swift arithmetic: perform division with integers and doubles. Cast to double for accurate decimals and use the modulo operator to find leftovers, illustrated with pizza slices and 50 people.
Learn how arrays represent a line of variables in Swift, using var for mutable arrays, with type inference and explicit typing to store strings like Fred and Barney.
Explore how to remove and access array elements using dot syntax and subscript notation, update values, and understand zero-based indexing with a practical Swift example.
Learn how to use dictionaries in Swift to map string keys like name, location, occupation, and best friend to string values, build a person dictionary, and access values by key.
Explore updating a dictionary in Swift by using update value for key and by subscript assignment, then verify the location key shows the new value, such as on a boat.
Explore the or operator, denoted by two pipe symbols, and how it needs only one true operand. Use a jacket analogy to illustrate true or false outcomes.
Explore the not operator to invert a boolean value in Swift by placing an exclamation mark before a variable; it reads as the opposite without reassigning the value.
Explore the Swift equivalence operator, denoted by ==, testing equality across numbers, strings, and booleans with case sensitivity, and contrast it with != and = to avoid common errors.
Use if statements in Swift to assign a greeting variable. Initialize greeting as an empty string, then set it to goodbye on a condition, illustrating conditional execution in a playground.
Explore using if, else if, and else to test multiple conditions in Swift, with variables a, b, and c, and see how c stores the relevant message.
Learn to use nested if statements and control flow for multiple cases. Keep code simple, and study a practical example with an else block.
Learn to automate tasks with while loops, using the dry principle to avoid repetition. Track iterations with an iterator while printing results in the console.
Learn how the do while loop guarantees the block runs at least once before checking the condition, and how it keeps code DRY by avoiding repetition.
Learn how to adapt for loops to dynamic arrays by using array.count instead of hard-coded numbers, ensuring count updates with each added item, and avoiding brittle code.
Learn how to define and call functions in Swift to avoid repeating code, turning repeated blocks into reusable subroutines that run on demand.
Learn to write Swift functions that return values, declare a return type with the arrow syntax, use return statements, and assign results to variables through string interpolation.
Explore customizing function parameters in Swift by adding a boolean 'should print' to control logging and return behavior, and learn naming conventions and function calls to improve code readability.
Learn how to return more than one value from a function using tuples in swift, by creating an ordered pair of a string and a boolean.
Learn to work with tuples in Swift, naming elements (emoji and found) and accessing values by index or name. Use an if statement to handle defined values and print results.
Explore Swift optionals, a type that can hold a value or be nil and show how nil can crash code if mishandled.
Define an enum to model the menu items, then use dot syntax to reference cases and pass the enum as a function parameter for type-safe access.
Learn to write a Swift function that uses raw values to compute the number of planets between two enum cases, subtracting one, with a Mercury to Jupiter example.
Explore associated values in Swift enums, defining cases with int and string payloads, using a real-world game example and a switch to access the values.
Explore how to use a type switch with enums and associated values, binding energy cost and damage, and understanding reassignment of enumeration cases.
Define a months enum with raw values, implement a method inside the enum, and use self to compute the remaining months until new year via dot syntax.
Learn how to assign default values to struct properties, including a boolean default like true, using the assignment operator, and why a custom initializer may be needed to override defaults.
Use struct methods to operate on data in the struct and return a name string like 'my name is {monster name}', then initialize a monster and call its method.
Compare Swift structs and classes by building a simple item model with name and price, exploring properties, dot syntax, and the need for initializers and designated initializers.
Explore class methods in Swift by adding a half-off method that returns a discounted price as a double, and learn how to access and modify class properties.
Explore inheritance in Swift by defining an instrument subclass of the Item base class, and observe how properties and initializers flow from superclass to subclass, including the rock band flag.
Learn to override methods in Swift by using a base class, subclass, and superclass; implement an extra discount with a default 20 percent using super to avoid duplication.
Discover how convenience initializers simplify object creation in Swift by delegating to designated initializers within a class. Learn rules about super and self, with a rock instrument example.
Explore Swift computed properties by building a classroom example that derives total students from number of boys and girls, using an initializer and stored properties, then access the computed total.
Explore how computed properties in Swift use a getter and a setter to manage derived values, such as adjusting the boys count when total students changes, using the newValue parameter.
Have you ever had a great app idea, had an interest in coding or just wanted to learn a new skill?
Well this course is just for you!
Swift is a new programming language by Apple that is used for developing iOS and OSX applications!
If you have ever wondered how the apps on your iPhone, iPad or a Mac computer are made then here is the big secret they are coded in a programming language and now with the release of Apple’s new programming language Swift it has never been a better time to start learning.
Not only is coding a highly in demand skill in the current job market but it is also extremely rewarding and empowering.
Since Swift Just came out there are very few experts in the field and those that want to go in to coding or app development will be at a huge advantage by taking the step to learn the programming language necessary to code for mobile technologies, specifically iOS.
And that is where this course comes in!
You are getting in on the ground level of massively in demand and useful skill.
My name is Ibram Uppal and I am the owner of Megaplex Applications an iOS apps development company and also a full time mobile and web developer.
With this course you will learn programming from the absolute basics all the way to more advanced topics, as well as best practices for coding.
You do not need any experience programming to take this course. So beginners welcome.
So I welcome you to the start of your very exciting journey into iOS and mobile development in the Comprehensive Guide to Swift.