Skip to content

Instantly share code, notes, and snippets.

@donpironet
donpironet / UINavigation+Extension.swift
Created June 29, 2016 10:56
UINavigationController extension to fix back swipe when having custom back button
extension UINavigationController: UINavigationControllerDelegate, UIGestureRecognizerDelegate {
public override static func initialize() {
struct Static {
static var token: dispatch_once_t = 0
}
if self !== UINavigationController.self {
return