Skip to content

Instantly share code, notes, and snippets.

View ricardolpd's full-sized avatar

Ricardo Duarte ricardolpd

View GitHub Profile
@ricardolpd
ricardolpd / SessionManager.swift
Created November 22, 2016 09:21
SessionManager+protocol extensions.
//
// SessionManager.swift
//
// Copyright (c) 2014-2016 Alamofire Software Foundation (http://alamofire.org/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
@ricardolpd
ricardolpd / NSObject+swizzle.m
Created February 28, 2015 23:33
NSObject+swizzle.m
#import <Foundation/Foundation.h>
@interface NSObject (Swizzle)
/**
@brief Method that swizzles both instance methods and class methods
@param fromMethod original selector
@param toMethod method of destination in swizzling.