Swift Tutorials
-
Default Value in Swift Dictionaries
Learn how to provide default values in Swift dictionaries, and how to get back actual values instead of nil even when keys do not exist.
-
Failable Initializer in Swift
Read about the failable initializer in Swift, and how to use it in custom types in order to return nil if proper initialization fails.
-
Higher Order Functions in Swift – reduce, contains, allSatisfy, removeAll
This post showcases four handy higher order functions in Swift necessary in everyday programming that all devs should be constantly using.
-
Higher Order Functions in Swift – forEach, filter, sorted
Three quite common higher order functions in Swift; forEach, filter and sorted. Read on to find out what they are for and how to use them.
-
Higher Order Functions in Swift – map, compactMap, flatMap
This post presents and explains three important and common higher order functions in Swift that are important tools to every developer.
-
Higher Order Functions in Swift – An Introduction
What exactly are higher order functions in Swift? This post explains that, and it goes one step further by showing how to create your own.
-
The @discardableResult Attribute in Swift
Read about the @discardableResult attribute in Swift and learn how to ignore return values from methods when you don’t want to use them.
-
Working With Property Lists in Swift – Part 2
In the second part of Working with Property Lists in Swift series see how to perform advanced encoding and decoding of property lists.
-
Working With Property Lists In Swift – Part 1
Find out in this first part of Working with Property Lists in Swift series how to use Codable to encode and decode to and from plist files.
-
Getting Local File’s Type Identifier From URL in iOS & macOS Apps
Getting the type identifier of a local file using the URL is an often needed task. Learn more in this post, and how to get other types that conforms to.