Skip to content

Instantly share code, notes, and snippets.


Matthew Cheetham MattCheetham

View GitHub Profile
MattCheetham / SegmentedCircularProgressView.swift
Created Jun 19, 2018
A circular progress view. Essentially it is a circle broken up into segments much like the loading indicator on watchOS when installing and update. It's also IBDesignable to make your life easier.
View SegmentedCircularProgressView.swift
// SegmentedCircularProgressView.swift
// Created by Matthew Cheetham on 18/06/2018.
import UIKit
/// A circular progress view broken out into individual segments. You can highlight individual segments to indicate progress in a clockwise fashion
View DeathToTimezones.swift
//: Playground - noun: a place where people can play
import UIKit
/// We're working with appointments.
/// So I get this string from the server and in some places I need to display it in the users local timezone and in other places I need to display it as the time and date that it was booked
var serverTimeString = "2017-03-21T19:00:00-07:00"
let localisedDateFormatter = DateFormatter()

Keybase proof

I hereby claim:

  • I am MattCheetham on github.
  • I am mattcheetham ( on keybase.
  • I have a public key whose fingerprint is A118 0B37 248C FA4D 7D77 76D2 A883 21A9 7326 59D5

To claim this, I am signing this object:

MattCheetham / forwarding.swift
Created Apr 29, 2016
Forwarding calls to in ObjC to internal swift methods
View forwarding.swift
@objc public class TSCDevice: NSObject {
internal let mySwiftObject = Device()
override public func forwardingTargetForSelector(aSelector: Selector) -> AnyObject? {
if mySwiftObject.respondsToSelector(aSelector) == true {
return mySwiftObject
MattCheetham / siri_homekit_colours.txt
Last active Aug 30, 2019
Siri HomeKit Light Colours
View siri_homekit_colours.txt
// A list of all colours that Siri understands when controlling light bulbs. E.g. "Hey Siri, set the bedroom lights to red"
// Please contribute any that you have come accross
Direct Sunlight
View gist:56d9b95d4718cd86d791