Skip to content

Instantly share code, notes, and snippets.

View allanweir's full-sized avatar

Allan Weir allanweir

View GitHub Profile
@allanweir
allanweir / STAnimationView.swift
Last active July 8, 2017 14:22
Lottie subclass for partial and reverse playback on iOS
//
// STAnimationView.swift
// Allan Weir
//
// Created by Allan Weir on 06/02/2017.
// Copyright © 2017 Allan Weir. All rights reserved.
// http://www.studiousdesigns.com
//
import UIKit
@allanweir
allanweir / SKActionExtension.swift
Last active January 9, 2017 20:17
SKAction extension for making adding custom easing functions easier
//
// SKTimingFunction.swift
// Studious ToolKit
//
// Created by Allan Weir on 09/01/2017.
// Copyright © 2017 Allan Weir. All rights reserved.
//
import SpriteKit
@allanweir
allanweir / SpriteKitTimingFunctions.swift
Last active February 12, 2022 09:15
Custom easing functions for use with SpriteKit / SKAction
//
// SKTimingFunction.swift
// Studious ToolKit
//
// Created by Allan Weir on 09/01/2017.
// Copyright © 2017 Allan Weir. All rights reserved.
// Adapted from a JavaScript version found at https://gist.github.com/gre/1650294
//
class SpriteKitTimingFunctions {