swift


Swift - Pat Or Generics?

PAT and Generics both do the same job, so, which one to use then?

post-699-thumbnail
Class Vs Struct In Swift

When we need to decide how to store data and model behavior, there are two choices: Classes and Struc...

Swift - The Curious Genericness Of Associated Types

Can associated types in Swift be used as generics?

Swiftui First Thoughts

At WWDC 2019, Apple surprised us all by announcing a completely new declarative UI framework called S...

Swift Strings Helper

Hands up everyone who can remember how to work with Swift strings, especially when it comes to substr...

How To Present And Dismiss A Modal In Swiftui

In this post, we will cover how to present and dismiss a modal view.

post-34-thumbnail
Replace Conditional With Pattern-Matching Refactoring

Use Pattern-matching and SwiftUI to build TicTacToe game

Tests In Pre-Commit Hooks And Alternatives

A few months ago, I bought myself a fancy MacBook Pro. You know, one of those fancy devices with the...