Skip to content

Instantly share code, notes, and snippets.

View marmelroy's full-sized avatar

Roy Marmelstein marmelroy

View GitHub Profile
@marmelroy
marmelroy / objectiveKit.swift
Last active May 24, 2019 15:11
ObjectiveKit.swift
let mapViewClass = ObjectiveClass<MKMapView>()
let selectors = mapViewClass.selectors // An array of selectors.
let properties = mapViewClass.properties // An array of properties.
mapViewClass.addSelector(#selector(testSelector), from: self.classForCoder)
@marmelroy
marmelroy / SpotifyLoginSample.swift
Created August 31, 2017 14:39
SpotifyLoginSample.swift
// Set up your app's URL Types and URL schemes.
// Add the following to your AppDelegate:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
SpotifyLogin.shared.configure(clientID: <#T##String#>, clientSecret: <#T##String#>, redirectURL: <#T##URL#>)
return true
}
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {