How to properly use the MVVM pattern in SwiftUI

Photo by Luca Micheli on Unsplash

What they tell you about memory leaks is not completely true

A battery
Photo by Danilo Alvesd on Unsplash

Encode and decode a schemaless JSON without losing the type safety

Laptop on desk
Photo by Lauren Mancke on Unsplash
func logEvent(named name: String, metadata: [String: Any])

Test the network layer easily

Laptop on desk
Photo by Wes Hicks on Unsplash

A proposal on how to test reference cycles in your Swift app or library

Smartphone on table
Photo by Benjamin Sow on Unsplash

The Problem

The main reason why classes are generally not properly deallocated in Swift is because of reference cycles.

Handle keyboard events automatically in any view using AutoLayout and Combine

Photo by Willian Justen de Vasconcellos on Unsplash

Easily animate views in your iOS apps

Smartphone and laptop on desk
Photo by Raagesh C on Unsplash

How to write AutoLayout constraint programmatically in an MVVM app.

Handle server responses that can change dynamically

Photo by Florian Krumm on Unsplash.
  • To back up their data.
  • To download data to show to the user.
  • And many other use cases.

A hands-on implementation of the Locks and Keys design pattern

Photo by Markus Winkler on Unsplash.
  • Metadata: Information that is used by the app to perform some computation and make decisions independently from user data.

Riccardo Cipolleschi

Hey there, I’m Riccardo. Senior iOS Engineer at TrueLayer and ex-Spooner. I breathe iOS development: apps and tools. I love to share my knowledge with others.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store