Skip to content

Instantly share code, notes, and snippets.

View TheBasicMind's full-sized avatar

Paul Lancefield TheBasicMind

View GitHub Profile
@TheBasicMind
TheBasicMind / APIData.swift
Last active February 12, 2019 06:52
Swift 4 network data wrapper for checking network (cloud) data conforms to an API version (uses Generics as appropriate)
import UIKit
/**
When encoding objects to JSON for use with
a cloud service such as iCloud, Swift's
built in coder will check if the key
paths of the object being decoded to, match
the keys paths of the object that was used
to encode in the first place.