Publication date : 05/06/2024

Course : Swift, language basics

Practical course - 2d - 14h00 - Ref. FIW
Price : 1280 € E.T.

Swift, language basics




A new programming language created by Apple, Swift is a modern, high-performance alternative to Objective-C. In this course, you'll learn how to develop Swift applications in the MacOS environment. You'll learn about Swift's basic concepts and innovative features.


INTER
IN-HOUSE
CUSTOM

Practical course in person or remote class
Disponible en anglais, à la demande

Ref. FIW
  2d - 14h00
1280 € E.T.




A new programming language created by Apple, Swift is a modern, high-performance alternative to Objective-C. In this course, you'll learn how to develop Swift applications in the MacOS environment. You'll learn about Swift's basic concepts and innovative features.


Teaching objectives
At the end of the training, the participant will be able to:
Learn the basic concepts of the Swift language
Creating a Swift project
Using the Swift Standard Library

Intended audience
Developers, project managers.

Prerequisites
Knowledge of basic algorithms. Practice of a structured programming language. You don't need to be an Apple developer.

Practical details
Hands-on work
Practical exercises in MacOS X and XCode 8.

Course schedule

1
Swift

  • Why a new language?
  • Its contributions and innovations.
  • Playgrounds.
  • Integration with existing tools.
  • Swift open system.

2
XCode development environment

  • Presentation of the tool and its addons.
  • Using XCode.
  • Interface Builder and the various tools available.
  • The debugger.
  • Measuring tools: instruments.
  • The Apple developer portal.
Hands-on work
Setting up the development environment and first exercise with XCode and Swift. Use of the debugger.

3
Swift language basics

  • Compiler functions and architecture.
  • The basics: variables, constants and tuples, character strings.
  • The optional and its management, unwrapped.
  • Operators and overload.
  • Control structures.
  • Closures and functions.
  • Classes, structures, enumerations, properties.
  • Inheritance and protocols.
Hands-on work
Creation of several applications on the language and its basics.

4
The Swift library

  • What's in the Swift Standard Library?
  • Table, dictionary and set management.
  • The Equatable and Comparable protocols: how to use them.
  • Other classes and structures available.
Hands-on work
Implementation of the Comparable and Equatable protocols.

5
Advanced Swift concepts

  • Subscripts: concept and implementation.
  • Error and exception handling: try, catch, throw, throws, try, defer.
  • Managing asynchronism with Grand Central Dispatch.
  • The Thread class, putting a thread to sleep, cancelling a thread, notification.
  • Strong, weak and unowned references.
  • Lazy Loading.
  • Create Swift extensions.
  • Genericity and generics.
Hands-on work
Genericity and extensions.

6
Swift and Objective-C interaction

  • Syntax comparison between Objective-C and Swift.
  • Data type comparison.
  • Mixing and matching.
  • Inheritance between Swift and Objective-C.
  • Special points and limitations.
Hands-on work
Implementing mix and matching with XCode.


Customer reviews
5 / 5
Customer reviews are based on end-of-course evaluations. The score is calculated from all evaluations within the past year. Only reviews with a textual comment are displayed.
ROMAIN Q.
24/02/25
5 / 5

Maybe add an extra day because 2 days are a bit short.