Skip to content

Instantly share code, notes, and snippets.

View richimf's full-sized avatar
:octocat:
Coding...

Ricardo Montesinos richimf

:octocat:
Coding...
View GitHub Profile
@richimf
richimf / rx.swift
Created February 20, 2020 00:15
RxSwift Cheat Sheet
//
//let episodeV = "episodeV"
//
//example(of: "Creating observables") {
// let mostPopular: Observable<String> = Observable<String>.just(episodeV)
//}
import RxSwift
// MARK: OBSERVABLES
/**
@richimf
richimf / GCD.swift
Last active August 20, 2019 18:48
Grand Central Dispatch (GCD) and NSOperationQueue frameworks.
//
/*
In iOS, Apple provides two ways to do multitasking:
The Grand Central Dispatch (GCD) and NSOperationQueue frameworks.
Both of them work perfectly when it’s time to assign tasks to different threads, or different queues other than the main one.
Which one should be use is a subjective matter, but in this tutorial we’ll focus on the first one, the GCD.
*No matter what,there’s one rule that should be always respected:
The main thread must be always remain free so it serves the user interface and user interactions.
@SAllen0400
SAllen0400 / buttonAnimationExtension.swift
Created March 15, 2017 00:04
Core Animation on UIButton Example
// Swift 3
extension UIButton {
func pulsate() {
let pulse = CASpringAnimation(keyPath: "transform.scale")
pulse.duration = 0.6
pulse.fromValue = 0.95
pulse.toValue = 1.0