
Explore swift basics, its Apple origins, and how to write your first programs with the print function, hello world, and the swift syntax in Xcode's playgrounds.
Explore declaring variables with var and constants with let in Swift, learn basic data types (strings, characters, int, float, double, bool, nil), type inference, and safe constant usage.
Learn how to declare and use character variables and strings, concatenate with the plus operator, iterate with for-in loops, and format strings using path components and string methods in Swift.
Explore arrays and dictionaries in Swift, reading and updating elements by index, expanding collections, and handling optional values with nil checks and force unwrapping.
Explore Swift loops, comparing while and for loops, with examples like calculating factorials, iterating over strings, and browsing dictionaries; learn loop control, counters, and collection traversal.
Explore conditional statements in Swift, using if, else if, and switch cases to branch code based on conditions, with exhaustive switches and no need for break statements.
Learn how swift functions are declared with func, accept parameters, and return values using an arrow. Practice calling functions, using default parameter values, and returning multiple values.
Master swift closures as unnamed functions, assign them to variables, and pass them as arguments. Learn with map, a square function, and simple diagram drawing to visualize closures in Swift.
Learn to define Swift classes with properties, methods, and initializers, and apply inheritance via base and subclass examples. Explore computed properties, self, overrides, and willSet/didSet in a car scenario.
Explore structures as grouped variables with points and rectangles, including initialization, computed properties like width and height, area methods, and their by-value semantics versus class reference.
Explore enumerated types in Swift with raw values, dot notation to define and read seasons. Learn generics by using a type parameter T to swap values and write reusable code.
Explore how extensions in Swift enhance types with new functions, including the mutating keyword that allows a function to modify values, demonstrated on a rectangle with width and height.
Build a tip calculator app in Xcode with Swift by creating a single-view project, designing the interface with text fields, labels, and a button, and configuring icons.
Create a Swift tip calculator model with six double variables and an init plus a calculated function to compute tip, total, and per-person amounts, then link to the view controller.
this lecture demonstrates building a tip calculator in ios by linking outlets and actions between storyboard elements and the view controller, initializing the model, and implementing automatic calculations.
LAST UPDATED: 11/2020
Fast, safe and interactive programming – this is new language from Apple!
Swift is very friendly to people who have no prior experience with programming.
The new language is much simpler than Objective-C and it's recommended for novice developers due to the simplified structure of the code, the possibility of making corrections on graphic charts and testing projects in the real time.
Applications developed using the Swift are faster, safer and code is much more clear.
We will walk you through everything you need to start making apps in Swift. You will learn the swift syntax, basic programming techniques and constructions. You will discover key elements of the new language.
But… to learn to code – you have to code… And because of that after theoretical part using Xcode environment you will create from scratch a fully-featured application. In this way, beginners an easy way to learn to programming on the latest mobile devices from Apple