Skip to content

Instantly share code, notes, and snippets.

John Famiglietti jfamiglietti

Block or report user

Report or block jfamiglietti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jfamiglietti / SpinningWaitImageGenerator.swift
Last active May 2, 2016
Creates a series of images for an animation similar to UIActivityIndicatorView
View SpinningWaitImageGenerator.swift
import UIKit
private extension CGPoint {
/// Multiplies point by given value
/// - parameter value: The x and y coordinates are multipled by this value.
/// - returns: A new CGPoint whose coordinate components have been multiplied by `value`
func multipliedBy(value: CGFloat) -> CGPoint {
return CGPoint(x: self.x * value, y: self.y * value)
You can’t perform that action at this time.