Swift 5 New Features

Course

Online

£ 150 + VAT

Description

  • Type

    Course

  • Methodology

    Online

  • Start date

    Different dates available

A fast-paced guide to get you up-and-running with Swift 5 and its new features.If you are already a Swift programmer, this course will get you up-to-date with all the new features in Swift 5 to improve your productivity and efficiency.You will become fully acquainted with the new String ergonomics and improvements to the current Swift Standard Library, and discover some new examples of syntactical sugar that will let you write shorter but more powerful code. You will learn about the new result type for handling errors, thereby making your code more robust. Finally, you will learn how to migrate to Swift 5 as easily as possible.By the end of the course, you will have gained up-to-date insights into all of Swift 5's features and will be able to code efficiently and rapidly within your projects.The code bundle is available at: About the AuthorDee Aliyu Odumosu has developed over 120 apps for global clients, including both individuals and start-ups. He utilizes his Swift expertise extensively in his work. His apps range from basic to very complex, some of which he features on his own website. Dee's passion for computer programming began in 2006 with his first contact with the Java programming language. For the last 5 years, Dee has been successfully programming on the iOS platform using Objective-C and Swift.

Facilities

Location

Start date

Online

Start date

Different dates availableEnrolment now open

About this course

Migrate a project on older versions of Swift to Swift 5
Discover changes in the new Swift Package Manager
Code more efficiently with strings and numbers
Master new and better ways to work with collections
Discover ABI stability, enabling binary compatibility between applications and libraries compiled with different versions of Swift, and make your life easier
Master performance improvements to the internal implementation of String
Discover new language features in Swift 5, such as dynamic callable types and handling future enumeration

Questions & Answers

Add your question

Our advisors and other users will be able to reply to you

Who would you like to address this question to?

Fill in your details to get a reply

We will only publish your name and question

Emagister S.L. (data controller) will process your data to carry out promotional activities (via email and/or phone), publish reviews, or manage incidents. You can learn about your rights and manage your preferences in the privacy policy.

Reviews

This centre's achievements

2021

All courses are up to date

The average rating is higher than 3.7

More than 50 reviews in the last 12 months

This centre has featured on Emagister for 6 years

Subjects

  • Programming
  • Approach
  • Works

Course programme

Manipulating and Checking Values 4 lectures 20:19 The Course Overview This video will give you an overview about the course. Checking Multiple of a Number Up to Swift 4.2, the way we checked if one number is a multiple of another number, was to use the remainder operator and then check if the remainder is 0. If the remainder is zero, then we can be certain the larger number is a multiple of the smaller number. However, the issue with this approach is that we had to check, if the smaller number is not a 0 itself and also the code is longer, and the remainder operator was not designed for this purpose. • Implement the old way of checking for multiplicity • Test with divisor being a zero • Implement the Swift 5 approach to checking for multiplicity Character Is a Number Prior to Swift 5, checking if a character is a number is tedious, with a three steps approach. First, the character is casted to a String, and then the String is casted to an Int, and only if the Int is not a nil value, we can be certain that the character is a number, because the three steps method was a success. However, the code is error prone, and not as robust as the new Swift 5 approach. • Implement the old approach, to check if the character is a number • Test the code to make sure it works • Implement Swift 5 approach using number function Unicode Scalar Properties When working with unicode scalars in Swift 4.2, we had to check for range of values, for example, in order to know if unicode is a small letter alphabet, we had to check if the unicode value is between 97 and 122, and in order to check if a unicode represents a digit from 0 to 9, we had to check between 48 and 57. This can become very tedious and it is error prone, this is why Swift 5 introduced many unicode properties to make this check very easy. • Implement the old way of checking digits, lower- and upper-case letters • Understand the issues with this approach • Implement Swift 5 approach to use unicode properties Manipulating and Checking Values - Quiz Manipulating and Checking Values 4 lectures 20:19 The Course Overview This video will give you an overview about the course. Checking Multiple of a Number Up to Swift 4.2, the way we checked if one number is a multiple of another number, was to use the remainder operator and then check if the remainder is 0. If the remainder is zero, then we can be certain the larger number is a multiple of the smaller number. However, the issue with this approach is that we had to check, if the smaller number is not a 0 itself and also the code is longer, and the remainder operator was not designed for this purpose. • Implement the old way of checking for multiplicity • Test with divisor being a zero • Implement the Swift 5 approach to checking for multiplicity Character Is a Number Prior to Swift 5, checking if a character is a number is tedious, with a three steps approach. First, the character is casted to a String, and then the String is casted to an Int, and only if the Int is not a nil value, we can be certain that the character is a number, because the three steps method was a success. However, the code is error prone, and not as robust as the new Swift 5 approach. • Implement the old approach, to check if the character is a number • Test the code to make sure it works • Implement Swift 5 approach using number function Unicode Scalar Properties When working with unicode scalars in Swift 4.2, we had to check for range of values, for example, in order to know if unicode is a small letter alphabet, we had to check if the unicode value is between 97 and 122, and in order to check if a unicode represents a digit from 0 to 9, we had to check between 48 and 57. This can become very tedious and it is error prone, this is why Swift 5 introduced many unicode properties to make this check very easy. • Implement the old way of checking digits, lower- and upper-case letters • Understand the issues with this approach • Implement Swift 5 approach to use unicode properties Manipulating and Checking Values - Quiz The Course Overview This video will give you an overview about the course. The Course Overview This video will give you an overview about the course. The Course Overview This video will give you an overview about the course. The Course Overview This video will give you an overview about the course. This video will give you an overview about the course. This video will give you an overview about the course. Checking Multiple of a Number Up to Swift 4.2, the way we checked if one number is a multiple of another number, was to use the remainder operator and then check if the remainder is 0. If the remainder is zero, then we can be certain the larger number is a multiple of the smaller number. However, the issue with this approach is that we had to check, if the smaller number is not a 0 itself and also the code is longer, and the remainder operator was not designed for this purpose. • Implement the old way of checking for multiplicity • Test with divisor being a zero • Implement the Swift 5 approach to checking for multiplicity Checking Multiple of a Number Up to Swift 4.2, the way we checked if one number is a multiple of another number, was to use the remainder operator and then check if the remainder is 0. If the remainder is zero, then we can be certain the larger number is a multiple of the smaller number. However, the issue with this approach is that we had to check, if the smaller number is not a 0 itself and also the code is longer, and the remainder operator was not designed for this purpose. • Implement the old way of checking for multiplicity • Test with divisor being a zero • Implement the Swift 5 approach to checking for multiplicity Checking Multiple of a Number Up to Swift 4.2, the way we checked if one number is a multiple of another number, was to use the remainder operator and then check if the remainder is 0. If the remainder is zero, then we can be certain the larger number is a multiple of the smaller number. However, the issue with this approach is that we had to check, if the smaller number is not a 0 itself and also the code is longer, and the remainder operator was not designed for this purpose. • Implement the old way of checking for multiplicity • Test with divisor being a zero • Implement the Swift 5 approach to checking for multiplicity Checking Multiple of a Number Up to Swift 4.2, the way we checked if one number is a multiple of another number, was to use the remainder operator and then check if the remainder is 0. If the remainder is zero, then we can be certain the larger number is a multiple of the smaller number. However, the issue with this approach is that we had to check, if the smaller number is not a 0 itself and also the code is longer, and the remainder operator was not designed for this purpose. • Implement the old way of checking for multiplicity • Test with divisor being a zero • Implement the Swift 5 approach to checking for multiplicity Up to Swift 4.2, the way we checked if one number is a multiple of another number, was to use the remainder operator and then check if the remainder is 0. If the remainder is zero, then we can be certain the larger number is a multiple of the smaller number. However, the issue with this approach is that we had to check, if the smaller number is not a 0 itself and also the code is longer, and the remainder operator was not designed for this purpose. • Implement the old way of checking for multiplicity • Test with divisor being a zero • Implement the Swift 5 approach to checking for multiplicity Up to Swift 4.2, the way we checked if one number is a multiple of another number, was to use the remainder operator and then check if the remainder is 0. If the remainder is zero, then we can be certain the larger number is a multiple of the smaller number. However, the issue with this approach is that we had to check, if the smaller number is not a 0 itself and also the code is longer, and the remainder operator was not designed for this purpose. • Implement the old way of checking for multiplicity • Test with divisor being a zero • Implement the Swift 5 approach to checking for multiplicity Character Is a Number Prior to Swift 5, checking if a character is a number is tedious, with a three steps approach. First, the character is casted to a String, and then the String is casted to an Int, and only if the Int is not a nil value, we can be certain that the character is a number, because the three steps method was a success. However, the code is error prone, and not as robust as the new Swift 5 approach. • Implement the old approach, to check if the character is a number • Test the code to make sure it works • Implement Swift 5 approach using number function Character Is a Number Prior to Swift 5, checking if a character is a number is tedious, with a three steps approach. First, the character is casted to a String, and then the String is casted to an Int, and only if the Int is not a nil value, we can be certain that the character is a number, because the three steps method was a success. However, the code is error prone, and not as robust as the new Swift 5 approach. • Implement the old approach, to check if the character is a number • Test the code to make sure it works • Implement Swift 5 approach using number function Character Is a Number Prior to Swift 5, checking if a character is a number is tedious, with a three steps approach. First, the character is casted to a String, and then the String is casted to an Int, and only if the Int is not a nil value, we can be certain that the character is a number, because the three steps method was a success. However, the code is error prone, and not as robust as the new Swift 5 approach. • Implement the old approach, to check if the character is a number • Test the code to make sure it works • Implement Swift 5 approach using number function Character Is a Number Prior to Swift 5, checking if a character is a number is tedious, with a three steps approach. First, the character is casted to a String, and then the String is casted to an Int, and only if the Int is not a nil value, we can be certain that the character is a number, because the three steps method was a success. However, the code is error prone, and not as robust as the new Swift 5 approach. • Implement the old approach, to check if the character is a number • Test the code to make sure it works • Implement Swift 5 approach using number function Prior to Swift 5, checking if a character is a number is tedious, with a three steps approach. First, the character is casted to a String, and then the String is casted to an Int, and only if the Int is not a nil value, we can be certain that the character is a number, because the three steps method was a success. However, the code is error prone, and not as robust as the new Swift 5 approach. • Implement the old approach, to check if the character is a number • Test the code to make sure it works • Implement Swift 5 approach using number function Prior to Swift 5, checking if a character is a number is tedious, with a three steps approach. First, the character is casted to a String, and then the String is casted to an Int, and only if the Int is not a nil value, we can be certain that the character is a number, because the three steps method was a success. However, the code is error prone, and not as robust as the new Swift 5 approach. • Implement the old approach, to check if the character is a number • Test the code to make sure it works • Implement Swift 5 approach using number function Unicode Scalar Properties When working with unicode scalars in Swift 4.2, we had to check for range of values, for example, in order to know if unicode is a small letter alphabet, we had to check if the unicode value is between 97 and 122, and in order to check if a unicode represents a digit from 0 to 9, we had to check between 48 and 57. This can become very tedious and it is error prone, this is why Swift 5 introduced many unicode properties to make this check very easy. • Implement the old way of checking digits, lower- and upper-case letters • Understand the issues with this approach • Implement Swift 5 approach to use unicode properties Unicode Scalar Properties When working with unicode scalars in Swift 4.2, we had to check for range of values, for example, in order to know if unicode is a small letter alphabet, we had to check if the unicode value is between 97 and 122, and in order to check if a unicode represents a digit from 0 to 9, we had to check between 48 and 57. This can become very tedious and it is error prone, this is why Swift 5 introduced many unicode properties to make this check very easy. • Implement the old way of checking digits, lower- and upper-case letters • Understand the issues with this approach • Implement Swift 5 approach to use unicode properties Unicode Scalar Properties When working with unicode scalars in Swift 4.2, we had to check for range of values, for example, in order to know if unicode is a small letter alphabet, we had to check if the unicode value is between 97 and 122, and in order to check if a unicode represents a digit from 0 to 9, we had to check between 48 and 57. This can become very tedious and it is error prone, this is why Swift 5 introduced many unicode properties to make this check very easy. • Implement the old way of checking digits, lower- and upper-case letters • Understand the issues with this approach • Implement Swift 5 approach to use unicode properties Unicode Scalar Properties When working with unicode scalars in Swift 4.2, we had to check for range of values, for example, in order to know if unicode is a small letter alphabet, we had to check if the unicode value is between 97 and 122, and in order to check if a unicode represents a digit from 0 to 9, we had to check between 48 and 57. This can become very tedious and it is error prone, this is why Swift 5 introduced many unicode properties to make this check very easy. • Implement the old way of checking digits, lower- and upper-case letters • Understand the issues with this approach • Implement Swift 5 approach to use unicode properties When working with unicode scalars in Swift 4.2, we had to check for range of values, for example, in order to know if unicode is a small letter alphabet, we had to check if the unicode value is between 97 and 122, and in order to check if a unicode represents a digit from 0 to 9, we had to check between 48 and 57. This can become very tedious and it is error prone, this is why Swift 5 introduced many unicode properties to make this check very easy. • Implement the old way of checking digits, lower- and upper-case letters • Understand the issues with this approach • Implement Swift 5 approach to use unicode properties When working with unicode scalars in Swift 4.2, we had to check for range of values, for example, in order to know if unicode is a small letter alphabet, we had to check if the unicode value is between 97 and 122, and in order to check if a unicode represents a digit from 0 to 9, we had to check between 48 and 57. This can become very tedious and it is error prone, this is why Swift 5 introduced many unicode properties to make this check very easy. • Implement the old way of checking digits, lower- and upper-case letters • Understand the issues with this approach • Implement Swift 5 approach to use unicode properties Manipulating and Checking Values - Quiz Manipulating and Checking Values - Quiz Manipulating and Checking Values - Quiz Manipulating and Checking Values - Quiz Working with Strings and Enums ng the enum value in the switch statement. With Swift 5, by adding a keyword in front...

Additional information

Basic Knowledge of Swift5

Swift 5 New Features

£ 150 + VAT