Tagged
swift
Dealing with file extensions and Uniform Type Identifiers
Storing OSLog instances as an extension in order to provide them using a shorthand syntax.
Map the keys of a dictionary to a different type
Transforming the type of keys in a dictionary using a handy map function.
Create time intervals with explicit units
Extending TimeInterval in Swift can make clearer and more readable code.
A modular analytics layer in Swift
Ensuring your analytics implementation is easy to use, alter and extend can be difficult. Let's have a look at a possible solution by building a modular analytics layer together in Swift.
Protocol functions with default parameter values
Swift protocols can have functions with default parameter values through the use of extensions.
Access the call site of a function using special Swift literals
Easily obtain information of where a Swift function was called from for use within the function itself.
Safely index items within a collection
How to use a Swift extension subscript and use it to safely get an item by index.