Skip to content

Instantly share code, notes, and snippets.

View misbell's full-sized avatar

Michael Prenez-Isbell misbell

View GitHub Profile
import UIKit
import PlaygroundSupport
// https://gist.github.com/erica/6f13f3043a330359c035e7660f3fe7f5
// Original Video: https://www.youtube.com/watch?v=TTmWUSgNOHk
// Video: https://www.youtube.com/watch?v=hmAB3WJOQTU
// Video: https://www.youtube.com/watch?v=DWtavuvmKdw (with zoom and fade)
// String to animate and its attributes
var string = "Hello, playground"
let attributes: [String: Any] = [
@misbell
misbell / gist:c2f5aea998ba64174a23e538172243f1
Created October 4, 2016 18:24
DispatchQueue and DispatchGroup in Swift 3.0 as of Oct 4 2016
let dispatchGroup = DispatchGroup()
let dq = DispatchQueue.global(qos: .utility)
dq.async {
for i in 0...3{
dq.async {
print("\n i - \(i)")