Enum usage explained with an in-depth manual in Swift

Enum usage in Swift: If case, guard case, fallthrough, and the CaseIteratable protocol. These are all terms which could sound familiar if you’ve worked a lot with enums in Swift. An enumeration defines a common type for a group of related values and enables you to work with those values in a type-safe way within your code. Let’s … 

 

Authentication with signed requests in Alamofire

With almost 30.000 stars on Github, you can tell that Alamofire is a popular framework to use for iOS and Mac projects. It makes network implementations easy to do and allows us to sign requests using a RequestAdapter for authentication. Signing requests for authentication API’s often require you to sign requests using for example JSON … 

 

App Store Connect API adoption with use case examples

The new App Store Connect API was announced during WWDC 2018 and makes it possible to write applications for App Store Connect. It includes endpoints for the following areas: TestFlight. Manage beta builds of your app, testers, and groups. Users and Access. Send invitations for users to join your team. Adjust their level of access … 

 

Custom Operators in Swift with considerations for readability

Custom operators in Swift create extensions on existing types and can be great for readability improvements if used correctly. Considerations with custom operators For code solutions in your project, you’re probably more likely to define a custom method instead of a custom operator. With the right knowledge and considerations, you can easily create more readable … 

 

Measure the performance of code in Swift

It’s important in any type of programming language to know how to measure the performance of code as there are many different ways to write solutions and not every solution is as performant as the other. If a piece of code turns out to be slow in, for example, the results of the Time Profiler …