Skip to content

Instantly share code, notes, and snippets.

View westerlund's full-sized avatar

Simon Westerlund westerlund

View GitHub Profile
@westerlund
westerlund / BaseOperation.swift
Last active January 17, 2017 16:28
A boiler plate operation to be used as a subclass, rename and implement your own operation stuff
// A boiler plate operation to be used as a subclass
//
// Created by Simon Westerlund on 2016-11-07.
// Copyright © 2016 Simon Westerlund. All rights reserved.
//
import Foundation
final class BaseOperation: Operation {
private var _isFinished = false {
willSet { willChangeValue(forKey: "isFinished") }