Skip to content

Instantly share code, notes, and snippets.

View riyanpratamap's full-sized avatar

Riyan Pratama riyanpratamap

View GitHub Profile
import UIKit
class MenuTransition: NSObject, UIViewControllerAnimatedTransitioning {
private var state: TransitionState = .present
private typealias Screens = (from: UIViewController, to: UIViewController)
func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? {
return PresentationController(presentedViewController: presented, presenting: presenting)
}
@Antarix
Antarix / CardView.h
Last active January 7, 2020 12:11
Simple CardView for iOS Objective-C
#import <UIKit/UIKit.h>
@interface CardView : UIView
@end
@jacobbubu
jacobbubu / ioslocaleidentifiers.csv
Created February 15, 2012 14:41
iOS Locale Identifiers
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)