Skip to content

Instantly share code, notes, and snippets.

Peter Sparago psparago

View GitHub Profile
@psparago
psparago / UIExtensions.swift
Created Jan 24, 2016
Simple UIView bounce animation
View UIExtensions.swift
extension UIView {
private class AnimationDelegate : NSObject {
let completion: (() -> Void)?
init(completion: (() -> Void)?) {
self.completion = completion
}
override func animationDidStop(theAnimation: CAAnimation, finished flag: Bool) {
You can’t perform that action at this time.