Skip to content

Instantly share code, notes, and snippets.

@cipherCOM
cipherCOM / Localizable.m
Created August 13, 2020 14:22 — forked from storoj/Localizable.m
Make UIKit localizable via Localizable.strings
#import <objc/runtime.h>
/**
To localize `UIBarButtonSystemItemDone` use "Done" key in your localizable.strings:
"Done" = "Localized_Done";
*/
__attribute__((constructor))
static void Hack_NSBundle_localizedString () {
@cipherCOM
cipherCOM / MultiDirectionAdjudicatingScrollView.swift
Created July 17, 2017 20:32 — forked from andymatuschak/MultiDirectionAdjudicatingScrollView.swift
Source for the Khan Academy app's unusual scrolling interactions
//
// MultiDirectionAdjudicatingScrollView.swift
// Khan Academy
//
// Created by Andy Matuschak on 12/16/14.
// Copyright (c) 2014 Khan Academy. All rights reserved.
//
import UIKit
import UIKit.UIGestureRecognizerSubclass