21 Nov 2024

Home

Programming

Method Swizzling 

When anyone mentions swizzling I automatically get worried. Method swizzling is an Objective C runtime feature which allows for the switching of method implementations. This means any function can theoretically be switched out for another one at run time. The Objective C runtime has a...
Programming

WWDC 19 – Swift UI, Combine 

A full host of new features were announced at WWDC 2019, but there have been two features that have been getting more of a buzz than any others. Not since the announcement of Swift back in 2014, has Apple released something which could potentially change...
Endurance

Chester Half Marathon 2019 

Chester was going to be my second half marathon of the year, and I was quietly confident that I could improve on my PB which I set back in January. After most of my training had been put into the Triathlon that I completed only...
Programming

Importing Data into HealthKit 

This post carries on from Importing File Data, where we looked at how to import a GPX file, and parse it into useable objects. If you’ve not read the first part I would recommend doing so before continuing. Recap For a quick recap, we ended...
Programming

Importing File Data 

To try and combine my love for programming, with my passion for exercise, I’m currently in the process of writing an iOS app to help out with my triathlon training. In this post, I will cover how to register your app for external file types,...
Programming

Unit Testing with Viper 

For anyone who hasn’t used the Viper Architecture pattern before it’s certainly an interesting experience to say the least. Viper stands for. V – View – this controls the user inputs by passing them on to the presenter. It also receives information back from the...
Programming

I don’t want this Class! 

There are some very powerful features in the Objective-C runtime, so is this something we should be taking advantage of more? During my time as a developer, I have seen my fair share of examples where people have abused the Objective-C runtime to solve a...
Programming

@NSCopying 

I came across the NSCopying attribute when working with URLSession and URLSessionConfiguration. At first glance, I would expect any value that is prefixed with the @NSCopying attribute to return a new copy and any changes would not affect the initial value. Although that does work...