UserDefaultsPeristable: Save and Load a struct in UserDefaults
Oct 10, 2021, 11:33 AM
The user’s defaults database is a key-value store that let’s you persist data across app launches. It is meant to be used to store user preferences. Using the Codeable protocol and a JSONEncoder you can very easily convert Swift types to...
How To Upload Data To A Server: Multipart/Form-Data HTTP Requests in Swift
Apr 26, 2021, 11:33 AM
So you are making your first face beautifier© app and it’s about time to upload some images to a server. The backend person asks you to do it via a type of HTTP POST request known as multipart/form-data. Soon you come to realise that...
Pragmatic Playground Driven Development (Part 1)
Dec 6, 2020, 11:33 PM
Using Xcode Playgrounds speeds up your development cycle by reducing compile times. You can make changes to a view, hit compile and view the change in seconds. However, adding Playgrounds that instantiate controllers from your application...
AVAudioSourceNode, AVAudioSinkNode: Low-Level Audio In Swift
Jun 19, 2020, 12:33 AM
Apple introduced AVAudioSourceNode and AVAudioSinkNode in WWDC2019. These two new AVAudio nodes are part of the AVFoundation framework and can be used in macOS 10.15 and iOS 13 onwards.
AVAudioSourceNode, AVAudioSinkNode or How I Deleted a Repo in Less Than 24 hours
May 19, 2020, 12:33 AM
Two days ago, I set out to create a simple Swift library for real-time audio processing. I was aiming to provide an easy to setup way of processing input from an audio device/file, and generating output to a device/file, sample by sample.
Jekyll: Testing Swift Code Blocks
May 4, 2020, 11:33 AM
Reading through last week’s iOSDevWeekly I came across Doctest, an exciting new project that aims to make Swift documentation testable.
Podfast: a Podcast Discovery App
May 2, 2020, 11:33 AM
I can clearly recall my mother’s disappointment once she realised she couldn’t listen to the radio through her new iPhone. Which made total sense to me.
How to Set Up Xcode Build Configurations
Apr 20, 2020, 11:33 AM
Build configurations are useful for a handful of reasons. If you are developing an app that’s currently in production, chances are you are switching from your production API endpoints to some kind of test environment endpoints for...
Podfast: a Podcast Discovery App
May 2, 2019, 11:33 AM
I can clearly recall my mother’s disappointment once she realised she couldn’t listen to the radio through her new iPhone. Which made total sense to me.